File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
crates/nostr-database/src/flatbuffers Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 38
38
* pool: better checks before perform queries or send messages to relays ([ Yuki Kishimoto] )
39
39
* pool: bump ` async-wsocket ` to ` v0.6 ` ([ Yuki Kishimoto] )
40
40
* database: not match event if ` Filter::search ` field is set ([ Yuki Kishimoto] )
41
+ * database: avoid to copy ` EventId ` in ` Event::decode ` ([ Yuki Kishimoto] )
41
42
* sdk: rename ` Proxy ` and ` ProxyTarget ` to ` Connection ` and ` ConnectionTarget ` ([ Yuki Kishimoto] )
42
43
* sqlite: use ` ValueRef ` instead of owned one ([ Yuki Kishimoto] )
43
44
* cli: improve ` sync ` command ([ Yuki Kishimoto] )
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ impl FlatBufferDecode for Event {
113
113
. collect :: < Result < Vec < Tag > , _ > > ( ) ?;
114
114
115
115
Ok ( Self :: new (
116
- EventId :: from_slice ( & ev. id ( ) . ok_or ( Error :: NotFound ) ?. 0 ) ? ,
116
+ EventId :: owned ( ev. id ( ) . ok_or ( Error :: NotFound ) ?. 0 ) ,
117
117
PublicKey :: from_slice ( & ev. pubkey ( ) . ok_or ( Error :: NotFound ) ?. 0 ) ?,
118
118
Timestamp :: from ( ev. created_at ( ) ) ,
119
119
Kind :: from ( ev. kind ( ) as u16 ) ,
You can’t perform that action at this time.
0 commit comments