Skip to content

Commit

Permalink
libsql: fix feature flag for http connector and sync
Browse files Browse the repository at this point in the history
  • Loading branch information
LucioFranco committed Nov 19, 2024
1 parent 9c4f424 commit 66622f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libsql/src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,8 @@ impl Database {

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

#[cfg(any(
all(not(feature = "tls"), feature = "replication"),
all(not(feature = "tls"), feature = "remote")
all(not(feature = "tls"), feature = "remote"),
all(not(feature = "tls"), feature = "sync")
))]
fn connector() -> Result<hyper::client::HttpConnector> {
panic!("The `tls` feature is disabled, you must provide your own http connector");
Expand Down

0 comments on commit 66622f2

Please sign in to comment.