fix: improve context handling in projections (#3638)

* fix: improve context handling in projections

* fix tests

* use as of system time for current sequence

* use as of system time for current sequence

Co-authored-by: Silvan <[email protected]>
This commit is contained in:
Livio Amstutz
2022-05-19 08:25:19 +00:00
committed by GitHub
co-authored by Silvan
parent ed0aa7088b
commit c71ccc8a80
7 changed files with 47 additions and 21 deletions
@@ -861,7 +861,7 @@ func testReduceErr(err error) Reduce {
}
func testQuery(query *eventstore.SearchQueryBuilder, limit uint64, err error) SearchQuery {
return func() (*eventstore.SearchQueryBuilder, uint64, error) {
return func(ctx context.Context) (*eventstore.SearchQueryBuilder, uint64, error) {
return query, limit, err
}
}