We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9d502c commit 7ea7ef5Copy full SHA for 7ea7ef5
sharding/shard_manager_config.go
@@ -63,9 +63,7 @@ func WithLogger(logger *slog.Logger) ConfigOpt {
63
// WithShardIDs sets the shardIDs the ShardManager should manage.
64
func WithShardIDs(shardIDs ...int) ConfigOpt {
65
return func(config *config) {
66
- if config.ShardIDs == nil {
67
- config.ShardIDs = map[int]struct{}{}
68
- }
+ config.ShardIDs = map[int]struct{}{}
69
for _, shardID := range shardIDs {
70
config.ShardIDs[shardID] = struct{}{}
71
}
0 commit comments