Skip to content

Commit db15387

Browse files
authored
Merge pull request #35 from G8XSU/send-sync-headers
Enforce that all implementations of the VssHeaderProvider are Send+Sync.
2 parents 2fe02b9 + 4fe2b61 commit db15387

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
cargo update -p proptest --precise "1.2.0" --verbose # proptest 1.3.0 requires rustc 1.64.0
2929
cargo update -p regex --precise "1.9.6" --verbose # regex 1.10.0 requires rustc 1.65.0
3030
cargo update -p tokio --precise "1.38.1" --verbose # tokio v1.39.0 requires rustc 1.70 or newer
31+
cargo update -p tokio-util --precise "0.7.11" --verbose # tokio-util v0.7.12 requires rustc 1.70 or newer
3132
- name: Build on Rust ${{ matrix.toolchain }}
3233
run: cargo build --verbose --color always
3334
- name: Check formatting

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "vss-client"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
rust-version = "1.63.0"
55
license = "MIT OR Apache-2.0"
66
edition = "2021"

src/headers/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub use lnurl_auth_jwt::LnurlAuthToJwtProvider;
1414

1515
/// Defines a trait around how headers are provided for each VSS request.
1616
#[async_trait]
17-
pub trait VssHeaderProvider {
17+
pub trait VssHeaderProvider: Send + Sync {
1818
/// Returns the HTTP headers to be used for a VSS request.
1919
/// This method is called on each request, and should likely perform some form of caching.
2020
///

0 commit comments

Comments
 (0)