Skip to content

Commit

Permalink
Forwarder: set static channel name in AppSync mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
asiaziola committed May 21, 2024
1 parent b13f65d commit 9fbb193
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/forward/mappers.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ func appSyncMapper(config *config.Config, channelName string, forContract bool)
return task.NewMapper[*Payload, *publisher.AppSyncPayload[*model.InteractionNotification]](config, "map-appsync-notification").
WithWorkerPool(1, config.Contract.StoreBatchSize).
WithProcessFunc(func(data *Payload, out chan *publisher.AppSyncPayload[*model.InteractionNotification]) (err error) {
channelName := channelName

// Neglect empty messages
if data.Interaction == nil {
return nil
Expand Down

0 comments on commit 9fbb193

Please sign in to comment.