Skip to content

Commit

Permalink
fix depth
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiferson committed Apr 16, 2016
1 parent 71d1c3a commit 7522107
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nsqd/channel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func TestChannelEmpty(t *testing.T) {
equal(t, len(channel.inFlightPQ), 0)
equal(t, len(channel.deferredMessages), 0)
equal(t, len(channel.deferredPQ), 0)
equal(t, channel.Depth(), int64(0))
equal(t, channel.Depth(), uint64(0))
}

func TestChannelEmptyConsumer(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion nsqd/topic.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (t *Topic) Pub(data [][]byte) error {
if err != nil {
return err
}
t.rs.AddRange(Range{High: int64(startIdx), Low: int64(endIdx)})
t.rs.AddRange(Range{Low: int64(startIdx), High: int64(endIdx)})
atomic.AddUint64(&t.messageCount, uint64(len(data)))
return nil
}
Expand Down

0 comments on commit 7522107

Please sign in to comment.