1
0
mirror of https://git.mills.io/kayos/bitraft.git synced 2024-06-27 09:19:00 +00:00
This commit is contained in:
Josh Baker 2017-01-31 05:33:17 -07:00
parent 339e6e6ffb
commit 4cf7cde693

15
crud.go

@ -21,21 +21,6 @@ import (
var errSyntaxError = errors.New("syntax error")
func now() time.Time {
return time.Now()
}
func makeKey(prefix byte, b []byte) []byte {
key := make([]byte, 1+len(b))
key[0] = prefix
copy(key[1:], b)
return key
}
func fromKey(key []byte) []byte {
return key[1:]
}
func (kvm *Machine) cmdSet(
m finn.Applier, conn redcon.Conn, cmd redcon.Command,
index uint64,