Skip to content

Commit

Permalink
Specify redis channel name that is used to send interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
janekolszak committed Jun 5, 2023
1 parent 052c007 commit cc1058d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/config/forwarder.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ import "github.com/spf13/viper"
type Forwarder struct {
// How many L1 interactions are fetched from the DB at once
FetcherBatchSize int

// Interactions are saved to this Redis channel
PublisherRedisChannelName string
}

func setForwarderDefaults() {
viper.SetDefault("Forwarder.FetcherBatchSize", "100")
viper.SetDefault("Forwarder.PublisherRedisChannelName", "interactions")
}

0 comments on commit cc1058d

Please sign in to comment.