We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e86ecb commit 2765848Copy full SHA for 2765848
Cargo.toml
@@ -23,6 +23,7 @@ debug = true
23
24
[profile.wasm]
25
inherits = "release"
26
+debug = true
27
28
[profile.wasm_asyncify]
29
inherits = "wasm"
crates/core/src/sync/subscriptions.rs
@@ -100,10 +100,13 @@ pub fn apply_subscriptions(
100
},
101
sqlite::Destructor::STATIC,
102
)?;
103
- match &subscription.ttl {
104
- Some(ttl) => stmt.bind_int64(4, ttl.as_secs() as i64),
105
- None => stmt.bind_null(4),
106
- }?;
+ stmt.bind_int64(
+ 4,
+ subscription
+ .ttl
107
+ .map(|f| f.as_secs() as i64)
108
+ .unwrap_or(LocallyTrackedSubscription::DEFAULT_TTL) as i64,
109
+ )?;
110
stmt.exec()?;
111
}
112
SubscriptionChangeRequest::Unsubscribe(subscription) => {
0 commit comments