Skip to content

Commit

Permalink
Use proper grpc protocol for flight address in config and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ewgenius committed Apr 29, 2024
1 parent 7ba9a46 commit e938fe8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use spiceai::ClientBuilder;
#[tokio::main]
async fn main() {
let mut client = ClientBuilder::new()
.flight_url("http://localhost:50051")
.flight_url("grpc://localhost:50051")
.build()
.await
.unwrap();
Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ pub const SPICE_CLOUD_FLIGHT_ADDR: &str = "https://flight.spiceai.io";
pub const SPICE_CLOUD_FIRECACHE_ADDR: &str = "https://firecache.spiceai.io";

// default address for local spice runtime
pub const SPICE_LOCAL_FLIGHT_ADDR: &str = "http://localhost:50051";
pub const SPICE_LOCAL_FLIGHT_ADDR: &str = "grpc://localhost:50051";

0 comments on commit e938fe8

Please sign in to comment.