mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-09-18 03:22:22 +02:00
negentropy: fix one stupid bug and rename Initiate() to Start().
This commit is contained in:
@@ -22,8 +22,8 @@ func New() *Vector {
|
||||
}
|
||||
|
||||
func (v *Vector) Insert(createdAt nostr.Timestamp, id string) error {
|
||||
if len(id)/2 != 32 {
|
||||
return fmt.Errorf("bad id size for added item: expected %d, got %d", 32, len(id)/2)
|
||||
if len(id) != 64 {
|
||||
return fmt.Errorf("bad id size for added item: expected %d bytes, got %d", 32, len(id)/2)
|
||||
}
|
||||
|
||||
item := negentropy.Item{Timestamp: createdAt, ID: id}
|
||||
|
Reference in New Issue
Block a user