File tree Expand file tree Collapse file tree 3 files changed +3
-11
lines changed
crates/nostr-relay-pool/src/relay Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Original file line number Diff line number Diff line change 145
145
* database: remove ` Order ` enum ([ Yuki Kishimoto] )
146
146
* database: remove ` order ` arg from ` NostrDatabase::query ` ([ Yuki Kishimoto] )
147
147
* pool: remove high latency log ([ Yuki Kishimoto] )
148
+ * pool: remove ` Error::OneShotRecvError ` variant ([ Yuki Kishimoto] )
148
149
* zapper: remove ` Err ` from ` NostrZapper ` and unnecessary variants from ` ZapperError ` ([ Yuki Kishimoto] )
149
150
* js(nostr): remove ` Keys::vanity ` ([ Yuki Kishimoto] )
150
151
* cli: remove ` reverse ` flag from ` query ` command
Original file line number Diff line number Diff line change @@ -77,9 +77,6 @@ pub enum Error {
77
77
/// Batch event empty
78
78
#[ error( "batch event cannot be empty" ) ]
79
79
BatchEventEmpty ,
80
- /// Impossible to receive oneshot message
81
- #[ error( "impossible to recv msg" ) ]
82
- OneShotRecvError ,
83
80
/// Read actions disabled
84
81
#[ error( "read actions are disabled for this relay" ) ]
85
82
ReadDisabled ,
Original file line number Diff line number Diff line change @@ -1085,14 +1085,8 @@ impl InternalRelay {
1085
1085
// Wait for oneshot reply
1086
1086
match time:: timeout ( Some ( opts. timeout ) , rx) . await {
1087
1087
Some ( result) => match result {
1088
- Ok ( val) => {
1089
- if val {
1090
- Ok ( ( ) )
1091
- } else {
1092
- Err ( Error :: MessageNotSent )
1093
- }
1094
- }
1095
- Err ( _) => Err ( Error :: OneShotRecvError ) ,
1088
+ Ok ( true ) => Ok ( ( ) ) ,
1089
+ Ok ( false ) | Err ( _) => Err ( Error :: MessageNotSent ) ,
1096
1090
} ,
1097
1091
None => Err ( Error :: RecvTimeout ) ,
1098
1092
}
You can’t perform that action at this time.
0 commit comments