lmdb: use 8-byte keys instead of 32, use indexAddr, migrations.
This commit is contained in:
8
helpers.go
Normal file
8
helpers.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package eventstore
|
||||
|
||||
import "github.com/nbd-wtf/go-nostr"
|
||||
|
||||
func isOlder(previous, next *nostr.Event) bool {
|
||||
return previous.CreatedAt < next.CreatedAt ||
|
||||
(previous.CreatedAt == next.CreatedAt && previous.ID > next.ID)
|
||||
}
|
||||
Reference in New Issue
Block a user