upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/test_utils/src/relay.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test_utils/src/relay.rs')
-rw-r--r--test_utils/src/relay.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test_utils/src/relay.rs b/test_utils/src/relay.rs
index e820651..14778d9 100644
--- a/test_utils/src/relay.rs
+++ b/test_utils/src/relay.rs
@@ -186,7 +186,7 @@ impl<'a> Relay<'a> {
186 186
187pub fn shutdown_relay(port: u64) -> Result<()> { 187pub fn shutdown_relay(port: u64) -> Result<()> {
188 let mut counter = 0; 188 let mut counter = 0;
189 while let Ok((mut socket, _)) = tungstenite::connect(format!("ws://localhost:{}", port)) { 189 while let Ok((mut socket, _)) = tungstenite::connect(format!("ws://localhost:{port}")) {
190 counter += 1; 190 counter += 1;
191 if counter == 1 { 191 if counter == 1 {
192 socket.write(tungstenite::Message::text("shut me down"))?; 192 socket.write(tungstenite::Message::text("shut me down"))?;