Skip to content

Commit 2b63632

Browse files
use hex in key counter (#7)
1 parent 7f59812 commit 2b63632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dsqueue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (q *DSQueue) Name() string {
127127

128128
func makeKey(item string, counter uint64) datastore.Key {
129129
b64Item := base64.RawURLEncoding.EncodeToString([]byte(item))
130-
return datastore.NewKey(fmt.Sprintf("%020d/%s", counter, b64Item))
130+
return datastore.NewKey(fmt.Sprintf("%016x/%s", counter, b64Item))
131131
}
132132

133133
// worker run dequeues and enqueues when available.

0 commit comments

Comments
 (0)