fix_: include the whole second when specifying the end time for store queries
This commit is contained in:
parent
be74093dd7
commit
c09fb0e0ec
|
@ -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