diff options
Diffstat (limited to 'pkg/priority_queue')
-rw-r--r-- | pkg/priority_queue/interface.go | 2 | ||||
-rw-r--r-- | pkg/priority_queue/queue.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pkg/priority_queue/interface.go b/pkg/priority_queue/interface.go index d1c3229f..5945a013 100644 --- a/pkg/priority_queue/interface.go +++ b/pkg/priority_queue/interface.go @@ -2,6 +2,6 @@ package priorityqueue type Queue interface { Push() - Pop() + Pop() interface{} BLPop() } diff --git a/pkg/priority_queue/queue.go b/pkg/priority_queue/queue.go index 88d18acb..79afab18 100644 --- a/pkg/priority_queue/queue.go +++ b/pkg/priority_queue/queue.go @@ -12,8 +12,8 @@ func (q *QueueImpl) Push() { } -func (q *QueueImpl) Pop() { - +func (q *QueueImpl) Pop() interface{} { + return nil } func (q *QueueImpl) BLPop() { |