Skip to content

Commit

Permalink
use uint64 for priority variable
Browse files Browse the repository at this point in the history
  • Loading branch information
piggito committed Sep 9, 2024
1 parent f89dfed commit 0192feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/v3/experimental/recipes/priority_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0192feb

Please sign in to comment.