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:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-07-16 10:10:41 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2025-07-16 10:39:35 +0100
commit092b9606ff2b721d858a5c7b2b27a2f9942b4bc4 (patch)
tree29022aee83ac0460098dfdbd4362ef75388c4ea7 /test_utils/src/relay.rs
parent6e041a3626f04e591d5c22f71d3e4ab2b03bd7bb (diff)
chore: nix flake update
required running: `cargo fix --allow-dirty --allow-staged` `cargo clippy --fix --allow-dirty -- -D warnings` to fix problems and then manually fixing some too
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"))?;