Skip to content

Commit

Permalink
Bugfix: remove unused State interface. Assign to correct one.
Browse files Browse the repository at this point in the history
  • Loading branch information
lthibault committed Aug 7, 2023
1 parent 1b3a39d commit c4174a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions stream/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ type Metrics interface {

type Client struct {
Logger log.Logger
State State
Bids, Cache PubSub
QueueSize, NumWorkers int

Expand All @@ -60,7 +59,6 @@ type Client struct {

func NewClient(l log.Logger, m *metrics.Metrics, s State, bids, cache PubSub, cfg *config.DistributedConfig) *Client {
c := &Client{
State: s,
Logger: l.
WithField("subService", "stream").
WithField("type", "redis"),
Expand All @@ -69,6 +67,7 @@ func NewClient(l log.Logger, m *metrics.Metrics, s State, bids, cache PubSub, cf
QueueSize: cfg.StreamQueueSize,
NumWorkers: cfg.WorkerNumber,
Metrics: m,
st: s,
}

c.initMetrics()
Expand Down

0 comments on commit c4174a7

Please sign in to comment.