From 48c7ff78f2e924b384fb908c5b1b64f6357cc712 Mon Sep 17 00:00:00 2001 From: guillaumemichel Date: Thu, 11 Sep 2025 11:49:34 +0200 Subject: [PATCH] use hex in key counter --- dsqueue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsqueue.go b/dsqueue.go index e031e2a..927fb65 100644 --- a/dsqueue.go +++ b/dsqueue.go @@ -127,7 +127,7 @@ func (q *DSQueue) Name() string { func makeKey(item string, counter uint64) datastore.Key { b64Item := base64.RawURLEncoding.EncodeToString([]byte(item)) - return datastore.NewKey(fmt.Sprintf("%020d/%s", counter, b64Item)) + return datastore.NewKey(fmt.Sprintf("%016x/%s", counter, b64Item)) } // worker run dequeues and enqueues when available.