mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
config: convert database backend to enum
This reports a nice error when the config is loaded, rather than later when the database is initialized.
This commit is contained in:
parent
d26b87a2f2
commit
8a30817930
3 changed files with 40 additions and 11 deletions
|
|
@ -1,3 +1,7 @@
|
|||
// Avoid spurious warnings with --no-default-features, which isn't expected to
|
||||
// work anyway
|
||||
#![cfg_attr(not(any(feature = "sqlite", feature = "rocksdb")), allow(unused))]
|
||||
|
||||
use std::{
|
||||
future::Future,
|
||||
net::SocketAddr,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue