separate indexes and ratel's index key spec

This commit is contained in:
2024-12-15 08:35:03 +00:00
parent 2ec9874321
commit e8dc7e6482
23 changed files with 221 additions and 188 deletions

View File

@@ -7,10 +7,10 @@ import (
"github.com/dgraph-io/badger/v4"
"realy.lol/ratel/keys/index"
"realy.lol/ratel/keys/serial"
"realy.lol/store"
"realy.lol/units"
"realy.lol/ratel/keys/prefixes"
)
const DefaultMaxLimit = 512
@@ -127,7 +127,7 @@ func (r *T) SerialKey() (idx by, ser *serial.T) {
panic(err)
}
ser = serial.New(s)
return index.Event.Key(ser), ser
return prefixes.Event.Key(ser), ser
}
// Serial returns the next monotonic conflict free unique serial on the database.