Skip to content

Commit 7be72a0

Browse files
authored
Merge pull request #56 from Lay3rLabs/generic-rpc
no need for default
2 parents 7ba1f6b + b9a5432 commit 7be72a0

File tree

8 files changed

+12
-30
lines changed

8 files changed

+12
-30
lines changed

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/layer-climb-address/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "layer-climb-address"
3-
version = "0.3.2"
3+
version = "0.3.3"
44
edition = "2021"
55
license = "Apache-2.0"
66

packages/layer-climb-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "layer-climb-cli"
3-
version = "0.3.2"
3+
version = "0.3.3"
44
edition = "2021"
55
license = "Apache-2.0"
66

packages/layer-climb-config/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "layer-climb-config"
3-
version = "0.3.2"
3+
version = "0.3.3"
44
edition = "2021"
55
license = "Apache-2.0"
66

packages/layer-climb-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "layer-climb-core"
3-
version = "0.3.2"
3+
version = "0.3.3"
44
edition = "2021"
55
license = "Apache-2.0"
66

packages/layer-climb-core/src/network/rpc.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,13 @@ use tendermint_rpc::Response;
77

88
cfg_if::cfg_if! {
99
if #[cfg(target_arch = "wasm32")] {
10-
// we assume that any signer we use in wasm32 is purely single-threaded
1110
#[async_trait(?Send)]
1211
pub trait RpcTransport: Send + Sync {
13-
fn default() -> Self
14-
where
15-
Self: Sized;
16-
1712
async fn post_json_bytes(&self, url: &str, body: Vec<u8>) -> anyhow::Result<String>;
1813
}
1914

2015
#[async_trait(?Send)]
2116
impl RpcTransport for reqwest::Client {
22-
fn default() -> Self {
23-
reqwest::Client::new()
24-
}
25-
2617
async fn post_json_bytes(&self, url: &str, body: Vec<u8>) -> anyhow::Result<String> {
2718
self.post(url)
2819
.header("Content-Type", "application/json")
@@ -36,22 +27,13 @@ cfg_if::cfg_if! {
3627
}
3728
}
3829
} else {
39-
// we assume that any signer we use in wasm32 is purely single-threaded
4030
#[async_trait]
4131
pub trait RpcTransport: Send + Sync {
42-
fn default() -> Self
43-
where
44-
Self: Sized;
45-
4632
async fn post_json_bytes(&self, url: &str, body: Vec<u8>) -> anyhow::Result<String>;
4733
}
4834

4935
#[async_trait]
5036
impl RpcTransport for reqwest::Client {
51-
fn default() -> Self {
52-
reqwest::Client::new()
53-
}
54-
5537
async fn post_json_bytes(&self, url: &str, body: Vec<u8>) -> anyhow::Result<String> {
5638
self.post(url)
5739
.header("Content-Type", "application/json")

packages/layer-climb-proto/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "layer-climb-proto"
3-
version = "0.3.2"
3+
version = "0.3.3"
44
edition = "2021"
55
license = "Apache-2.0"
66

packages/layer-climb/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "layer-climb"
3-
version = "0.3.2"
3+
version = "0.3.3"
44
edition = "2021"
55
license = "Apache-2.0"
66

0 commit comments

Comments
 (0)