Skip to content

Commit

Permalink
remove magic number, bump versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mobile-bungalow committed Oct 24, 2024
1 parent b83c499 commit 74626dd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ members = [
]

[workspace.package]
version = "0.4.0-alpha-11"
version = "0.4.0-alpha-12"
rust-version = "1.64"
authors = [
"Paul Schoenfelder <paulschoenfelder@gmail.com>",
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if useLocalFramework {
path: "./target/uniffi/swift/liveview_native_core.xcframework"
)
} else {
let releaseTag = "0.4.0-alpha-11"
let releaseTag = "0.4.0-alpha-12"
let releaseChecksum = "f3972f4d40732c884c98426b28550376abaff20a3490b73367ad170f1f0bcca9"
liveview_native_core_framework = .binaryTarget(
name: "liveview_native_core",
Expand Down
6 changes: 5 additions & 1 deletion crates/core/src/live_socket/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ use crate::{
parser::parse,
};

// If you change this also change the
// default below in the proc macro
const DEFAULT_TIMEOUT: u64 = 30_000;

#[derive(Debug, Clone, PartialEq, Eq, uniffi::Record)]
pub struct ConnectOpts {
#[uniffi(default = None)]
Expand All @@ -29,7 +33,7 @@ impl Default for ConnectOpts {
headers: None,
body: None,
method: String::from("GET"),
timeout_ms: 30_000,
timeout_ms: DEFAULT_TIMEOUT,
}
}
}
Expand Down

0 comments on commit 74626dd

Please sign in to comment.