diff --git a/server.go b/server.go index 0469a4b..d18e056 100644 --- a/server.go +++ b/server.go @@ -109,7 +109,7 @@ func (s *serverConnection) handleAuthRequest(body json.RawMessage) error { } func (s *serverConnection) handleNoteRequest(body json.RawMessage) error { - r := &util.Range{Start: []byte("notes/")} + r := util.BytesPrefix([]byte("notes/")) it := s.db.NewIterator(r, nil) defer it.Release()