Skip to content

Commit 61ba2b7

Browse files
committed
feat(config): Make gRPC http connections configurable
Signed-off-by: Joshua Potts <[email protected]>
1 parent 9940b3b commit 61ba2b7

19 files changed

+236
-85
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ license = "Apache-2.0"
88
name = "hedera"
99
readme = "README.md"
1010
repository = "https://github.com/hashgraph/hedera-sdk-rust"
11-
version = "0.28.0"
11+
version = "0.29.0-alpha"
1212

1313
[lib]
1414
bench = false

examples/consensus_pub_sub.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async fn main() -> anyhow::Result<()> {
4848
let _ = dotenvy::dotenv();
4949
let args = Args::parse();
5050

51-
let client = Client::for_testnet();
51+
let client = Client::for_testnet()?;
5252

5353
client.set_operator(args.operator_account_id, args.operator_key);
5454

examples/create_account.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async fn main() -> anyhow::Result<()> {
3636
let _ = dotenvy::dotenv();
3737
let args = Args::parse();
3838

39-
let client = Client::for_testnet();
39+
let client = Client::for_testnet()?;
4040

4141
client.set_operator(args.operator_account_id, args.operator_key);
4242

examples/create_file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async fn main() -> anyhow::Result<()> {
3636
let _ = dotenvy::dotenv();
3737
let args = Args::parse();
3838

39-
let client = Client::for_testnet();
39+
let client = Client::for_testnet()?;
4040

4141
client.set_operator(args.operator_account_id, args.operator_key);
4242

examples/create_topic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async fn main() -> anyhow::Result<()> {
3636
let _ = dotenvy::dotenv();
3737
let args = Args::parse();
3838

39-
let client = Client::for_testnet();
39+
let client = Client::for_testnet()?;
4040

4141
client.set_operator(args.operator_account_id, args.operator_key);
4242

examples/get_account_balance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use hedera::{AccountBalanceQuery, AccountId, Client, NodeAddressBookQuery};
2323
#[tokio::main]
2424
async fn main() -> anyhow::Result<()> {
2525
// let client = Client::for_mainnet();
26-
let client = Client::for_testnet();
26+
let client = Client::for_testnet()?;
2727
dbg!(NodeAddressBookQuery::new()
2828
.execute(&client)
2929
.await?

examples/get_account_info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async fn main() -> anyhow::Result<()> {
3535
let _ = dotenvy::dotenv();
3636
let args = Args::parse();
3737

38-
let client = Client::for_testnet();
38+
let client = Client::for_testnet()?;
3939

4040
client.set_operator(args.operator_account_id, args.operator_key);
4141

examples/get_file_contents.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async fn main() -> anyhow::Result<()> {
3838
let _ = dotenvy::dotenv();
3939
let args = Args::parse();
4040

41-
let client = Client::for_testnet();
41+
let client = Client::for_testnet()?;
4242

4343
client.set_operator(args.operator_account_id, args.operator_key);
4444

examples/transfer_crypto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async fn main() -> anyhow::Result<()> {
4444
let _ = dotenvy::dotenv();
4545
let args = Args::parse();
4646

47-
let client = Client::for_testnet();
47+
let client = Client::for_testnet()?;
4848

4949
client.set_operator(args.operator_account_id, args.operator_key);
5050

0 commit comments

Comments
 (0)