Skip to content

Commit efb3f8b

Browse files
committed
asset non empty endponts in constructor
1 parent 67022b6 commit efb3f8b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lazer/sdk/rust/client/src/client.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ impl PythLazerClient {
4242
if backoff.max_elapsed_time.is_some() {
4343
bail!("max_elapsed_time is not supported in Pyth Lazer client");
4444
}
45+
if endpoints.is_empty() {
46+
bail!("At least one endpoint must be provided");
47+
}
4548
Ok(Self {
4649
endpoints,
4750
access_token,

0 commit comments

Comments
 (0)