16 lines
460 B
Go
16 lines
460 B
Go
package ratel
|
|
|
|
import (
|
|
"relay.mleku.dev/ratel/keys/serial"
|
|
"relay.mleku.dev/ratel/prefixes"
|
|
)
|
|
|
|
// GetCounterKey returns the proper counter key for a given event Id. This needs a separate
|
|
// function because of what it does, but is generated in the general GetIndexKeysForEvent
|
|
// function.
|
|
func GetCounterKey(ser *serial.T) (key []byte) {
|
|
key = prefixes.Counter.Key(ser)
|
|
// log.T.ToSliceOfBytes("counter key %d %d", index.Counter, ser.Uint64())
|
|
return
|
|
}
|