Skip to content
Snippets Groups Projects
Commit e0471f92 authored by Jonah Husson's avatar Jonah Husson
Browse files

Fix len checking

parent b719e64d
No related branches found
No related tags found
1 merge request!32Release
......@@ -189,7 +189,7 @@ func (nb *Impl) SendBatch(data map[int64][]*notifications.Data) ([]*notification
var unsent []*notifications.Data
for i, ilist := range data {
var overflow, toSend []*notifications.Data
if len(data) > nb.maxNotifications {
if len(ilist) > nb.maxNotifications {
overflow = ilist[nb.maxNotifications:]
toSend = ilist[:nb.maxNotifications]
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment