Skip to content

Commit

Permalink
localhost -> 127.0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
divi255 committed Aug 28, 2024
1 parent 4ffd520 commit 532bd2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::{net::TcpStream, time::Duration};
use metrics_exporter_scope::{protocol, ClientSettings};

fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut client = TcpStream::connect("localhost:5001")?;
let mut client = TcpStream::connect("127.0.0.1:5001")?;
let version = protocol::read_version(&client)?;
if version != protocol::VERSION {
return Err("Incompatible version".into());
Expand Down

0 comments on commit 532bd2c

Please sign in to comment.