Skip to content

Commit

Permalink
rejig
Browse files Browse the repository at this point in the history
  • Loading branch information
shikhar committed Nov 20, 2024
1 parent f39cb52 commit 0807c1d
Show file tree
Hide file tree
Showing 6 changed files with 170 additions and 260 deletions.
8 changes: 2 additions & 6 deletions examples/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::time::Duration;
use futures::StreamExt;
use streamstore::{
batching::AppendRecordsBatchingStream,
client::{Client, ClientConfig, ClientError, HostEndpoints},
client::{Client, ClientConfig, ClientError},
types::{
AppendInput, AppendRecord, BasinName, CreateBasinRequest, CreateStreamRequest,
DeleteBasinRequest, DeleteStreamRequest, ListBasinsRequest, ListStreamsRequest,
Expand All @@ -15,11 +15,7 @@ use streamstore::{
async fn main() {
let token = std::env::var("S2_AUTH_TOKEN").unwrap();

let host_endpoints = HostEndpoints::from_env().unwrap();

let config = ClientConfig::new(token)
.with_host_endpoints(host_endpoints)
.with_request_timeout(Duration::from_secs(10));
let config = ClientConfig::new(token).with_request_timeout(Duration::from_secs(10));

println!("Connecting with {config:#?}");

Expand Down
Loading

0 comments on commit 0807c1d

Please sign in to comment.