fix(db): version vector serialisation :( (#10050)

ffs
This commit is contained in:
Jakob Borg
2025-04-09 17:46:49 +02:00
committed by GitHub
parent 7cfa871d58
commit ddea2e449c
4 changed files with 91 additions and 1 deletions
+3 -1
View File
@@ -31,7 +31,9 @@ func (v *Vector) String() string {
if i > 0 {
buf.WriteRune(',')
}
fmt.Fprintf(&buf, "%x:%d", c.ID, c.Value)
var idbs [8]byte
binary.BigEndian.PutUint64(idbs[:], uint64(c.ID))
fmt.Fprintf(&buf, "%x:%d", idbs, c.Value)
}
return buf.String()
}