mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-07-09 15:49:56 +02:00
nip45: hyperlolog small fixes and improvements. support deterministic offset for hardcoded set of queries.
This commit is contained in:
@ -195,7 +195,7 @@ func (v CountEnvelope) MarshalJSON() ([]byte, error) {
|
||||
w.RawString(strconv.FormatInt(*v.Count, 10))
|
||||
if v.HyperLogLog != nil {
|
||||
w.RawString(`,"hll":"`)
|
||||
hllHex := make([]byte, 0, 512)
|
||||
hllHex := make([]byte, 512)
|
||||
hex.Encode(hllHex, v.HyperLogLog)
|
||||
w.Buffer.AppendBytes(hllHex)
|
||||
w.RawString(`"`)
|
||||
|
Reference in New Issue
Block a user