mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 23:43:44 +00:00
fix: bind matcher source to playlist
This commit is contained in:
@@ -46,8 +46,8 @@ func main() {
|
||||
}
|
||||
now := func() time.Time { return time.Now().UTC() }
|
||||
worker := matcher.Worker{
|
||||
Source: func(ctx context.Context, at time.Time, limit int) ([]domain.Candidate, error) {
|
||||
return store.ListQueuedCandidates(ctx, db, at, limit)
|
||||
Source: func(ctx context.Context, at time.Time, playlist domain.Playlist, limit int) ([]domain.Candidate, error) {
|
||||
return store.ListQueuedCandidates(ctx, db, playlist, at, limit)
|
||||
},
|
||||
Creator: matcher.ProposalCreatorFunc(func(ctx context.Context, proposal domain.Proposal, ticketIDs map[string]string, at time.Time) error {
|
||||
return store.CreateProposal(ctx, db, proposal, ticketIDs, at)
|
||||
|
||||
Reference in New Issue
Block a user