fix_: include the whole second when specifying the end time for store queries
This commit is contained in:
parent
fe52352690
commit
a708ce1b5d
|
@ -193,7 +193,7 @@ func (w *gethWakuV2Wrapper) RequestStoreMessages(ctx context.Context, peerID pee
|
|||
|
||||
query := store.FilterCriteria{
|
||||
TimeStart: proto.Int64(int64(r.From) * int64(time.Second)),
|
||||
TimeEnd: proto.Int64(int64(r.To) * int64(time.Second)),
|
||||
TimeEnd: proto.Int64(int64(time.Duration(r.To)*time.Second + time.Second - time.Nanosecond)),
|
||||
ContentFilter: protocol.NewContentFilter(w.waku.GetPubsubTopic(r.PubsubTopic), contentTopics...),
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue