nb.Storage.GetNotificationBuffer().Add(id.Round(nd.RoundID),[]*notifications.Data{nd})// TODO build lists by rid for more efficient re-insertion? Accumulator would let us do this with the other size check in swap
}
overflow=append(overflow,rest...)
csvs[i]=string(notifs)
ephemerals=append(ephemerals,i)
unsent=append(unsent,overflow...)
}
toNotify,err:=nb.Storage.GetToNotify(ephemerals)
iferr!=nil{
returnerrors.WithMessage(err,"Failed to get list of tokens to notify")
returnnil,errors.WithMessage(err,"Failed to get list of tokens to notify")