Skip to content

Commit 23ab667

Browse files
committed
pool: fix wrong conversion from u8 to RelayStatus
Fixes #877 Pull-Request: #878 Signed-off-by: Yuki Kishimoto <[email protected]>
1 parent 756538e commit 23ab667

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555

5656
- nostr: handle `A` and `E` standard tags ([awiteb] at https://github.com/rust-nostr/nostr/pull/870)
5757
- nostr: fix `nip22::extract_root` to handle uppercase tags when `is_root` is true ([awiteb] at https://github.com/rust-nostr/nostr/pull/876)
58+
- pool: fix wrong conversion from u8 to RelayStatus ([Yuki Kishimoto] at https://github.com/rust-nostr/nostr/pull/878)
5859

5960
### Deprecated
6061

crates/nostr-relay-pool/src/relay/status.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ impl AtomicRelayStatus {
3535
let val: u8 = self.value.load(Ordering::SeqCst);
3636
match val {
3737
0 => RelayStatus::Initialized,
38-
1 => RelayStatus::Connecting,
38+
1 => RelayStatus::Pending,
3939
2 => RelayStatus::Connecting,
4040
3 => RelayStatus::Connected,
4141
4 => RelayStatus::Disconnected,

0 commit comments

Comments
 (0)