Using IP for localhost
This commit is contained in:
@@ -12,8 +12,8 @@ use websockets::WebSocket;
|
|||||||
|
|
||||||
/// Starts a websocket and periodically sends a BFT-CRDT message to the websocket server
|
/// Starts a websocket and periodically sends a BFT-CRDT message to the websocket server
|
||||||
pub(crate) async fn start() -> Result<(), websockets::WebSocketError> {
|
pub(crate) async fn start() -> Result<(), websockets::WebSocketError> {
|
||||||
println!("connecting to websocket at ws://localhost:8080/");
|
println!("connecting to websocket at ws://127.0.0.1:8080/");
|
||||||
let mut ws = WebSocket::connect("ws://localhost:8080/").await?;
|
let mut ws = WebSocket::connect("ws://127.0.0.1:8080/").await?;
|
||||||
|
|
||||||
// generate a placeholder transaction
|
// generate a placeholder transaction
|
||||||
let json = generate_transaction().unwrap();
|
let json = generate_transaction().unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user