From 0192feb7ae13f48b00612646715bb9347d339840 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Pe=C3=B1a?= Date: Mon, 19 Aug 2024 14:17:33 -0500 Subject: [PATCH] use uint64 for priority variable --- client/v3/experimental/recipes/priority_queue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/v3/experimental/recipes/priority_queue.go b/client/v3/experimental/recipes/priority_queue.go index 1b26067466fa..76737eeebcc5 100644 --- a/client/v3/experimental/recipes/priority_queue.go +++ b/client/v3/experimental/recipes/priority_queue.go @@ -35,7 +35,7 @@ func NewPriorityQueue(client *v3.Client, key string) *PriorityQueue { } // Enqueue puts a value into a queue with a given priority. -func (q *PriorityQueue) Enqueue(val string, pr uint16) error { +func (q *PriorityQueue) Enqueue(val string, pr uint64) error { prefix := fmt.Sprintf("%s%05d", q.key, pr) _, err := newSequentialKV(q.client, prefix, val) return err