Skip to content

Commit 66622f2

Browse files
committed
libsql: fix feature flag for http connector and sync
1 parent 9c4f424 commit 66622f2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libsql/src/database.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,8 @@ impl Database {
663663

664664
#[cfg(any(
665665
all(feature = "tls", feature = "replication"),
666-
all(feature = "tls", feature = "remote")
666+
all(feature = "tls", feature = "remote"),
667+
all(feature = "tls", feature = "sync")
667668
))]
668669
fn connector() -> Result<hyper_rustls::HttpsConnector<hyper::client::HttpConnector>> {
669670
let mut http = hyper::client::HttpConnector::new();
@@ -680,7 +681,8 @@ fn connector() -> Result<hyper_rustls::HttpsConnector<hyper::client::HttpConnect
680681

681682
#[cfg(any(
682683
all(not(feature = "tls"), feature = "replication"),
683-
all(not(feature = "tls"), feature = "remote")
684+
all(not(feature = "tls"), feature = "remote"),
685+
all(not(feature = "tls"), feature = "sync")
684686
))]
685687
fn connector() -> Result<hyper::client::HttpConnector> {
686688
panic!("The `tls` feature is disabled, you must provide your own http connector");

0 commit comments

Comments
 (0)