Skip to content

Commit

Permalink
Merge pull request #3370 from kobergj/MultiConsumerPostprocessing
Browse files Browse the repository at this point in the history
[tests-only] Multi Consumer Postprocessing
  • Loading branch information
kobergj authored Oct 19, 2022
2 parents b55836d + 5f5d147 commit f476949
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/storage/utils/decomposedfs/decomposedfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,13 @@ func New(o *options.Options, lu *lookup.Lookup, p PermissionsChecker, tp Tree, p
return nil, err
}

go fs.Postprocessing(ch)
if o.Events.NumConsumers <= 0 {
o.Events.NumConsumers = 1
}

for i := 0; i < o.Events.NumConsumers; i++ {
go fs.Postprocessing(ch)
}
}

return fs, nil
Expand Down
1 change: 1 addition & 0 deletions pkg/storage/utils/decomposedfs/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ type EventOptions struct {
NatsClusterID string `mapstructure:"natsclusterid"`
TLSInsecure bool `mapstructure:"tlsinsecure"`
TLSRootCACertificate string `mapstructure:"tlsrootcacertificate"`
NumConsumers int `mapstructure:"numconsumers"`
}

// TokenOptions are the configurable option for tokens
Expand Down

0 comments on commit f476949

Please sign in to comment.