Skip to content

Commit

Permalink
fix by linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Neznaykin committed Mar 5, 2024
1 parent 9e649d5 commit fc939ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions delivery/broker/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,6 @@ func (b *Broker) produce(topic Topic, data []byte) error {
return nil
}

// getCurrentTopics returns the list of topics based on enabled modules.
// nolint:gocyclo
func (b *Broker) getTopics(modules []string) []string {
topics := make([]string, 0)

return removeDuplicates(topics)
}

func WithValidatorCache(valCache cache[string, int64]) func(b *Broker) {
return func(b *Broker) {
b.cache.validator = valCache
Expand Down
4 changes: 2 additions & 2 deletions delivery/broker/topics.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ var (
return removeDuplicates(stringTopics)
}([]Topics{
authTopics, bankTopics, distributionTopics, govTopics, mintTopics, stakingTopics, coreTopics, authzTopics,
feegrantTopics, slashingTopics, ibcTopics, liquidityTopics, graphTopics, bandwidthTopics, dmnTopics, gridTopics,
rankTopics, resourcesTopics, wasmTopics, rawTopics})
feegrantTopics, slashingTopics, ibcTopics, liquidityTopics, graphTopics, bandwidthTopics, dmnTopics,
gridTopics, rankTopics, resourcesTopics, wasmTopics, rawTopics})
)

type (
Expand Down

0 comments on commit fc939ab

Please sign in to comment.