Skip to content

Commit c7c452d

Browse files
committed
use uint64 for priority variable
Signed-off-by: Juan Peña <[email protected]>
1 parent f89dfed commit c7c452d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/v3/experimental/recipes/priority_queue.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func NewPriorityQueue(client *v3.Client, key string) *PriorityQueue {
3535
}
3636

3737
// Enqueue puts a value into a queue with a given priority.
38-
func (q *PriorityQueue) Enqueue(val string, pr uint16) error {
38+
func (q *PriorityQueue) Enqueue(val string, pr uint64) error {
3939
prefix := fmt.Sprintf("%s%05d", q.key, pr)
4040
_, err := newSequentialKV(q.client, prefix, val)
4141
return err

0 commit comments

Comments
 (0)