Skip to content

Commit

Permalink
fixed error, use ingestor_url instead of node_url
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilsinhaparseable committed Apr 8, 2024
1 parent 87386f3 commit 0ea4459
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
target
data
staging
data*
staging*
limitcache
examples
cert.pem
Expand Down
2 changes: 1 addition & 1 deletion server/src/handlers/http/modal/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ impl Server {
pub fn get_server_address() -> SocketAddr {
// this might cause an issue down the line
// best is to make the Cli Struct better, but thats a chore
(CONFIG.parseable.node_url.clone())
(CONFIG.parseable.ingestor_url.clone())
.parse::<SocketAddr>()
.unwrap()
}
Expand Down
2 changes: 1 addition & 1 deletion server/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ impl TimePeriod {

#[inline(always)]
pub fn get_address() -> (IpAddr, u16) {
let addr = CONFIG.parseable.node_url.parse::<SocketAddr>().unwrap();
let addr = CONFIG.parseable.ingestor_url.parse::<SocketAddr>().unwrap();
(addr.ip(), addr.port())
}

Expand Down

0 comments on commit 0ea4459

Please sign in to comment.