Skip to content

Commit

Permalink
fix: nil ptr (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
anrs authored Oct 7, 2022
1 parent a36361c commit c20649c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/utils/servicepusher.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ type EndpointPusher struct {

// NewEndpointPusher .
func NewEndpointPusher() *EndpointPusher {
return &EndpointPusher{}
return &EndpointPusher{
pendingEndpoints: hashmap.New[string, context.CancelFunc](),
availableEndpoints: hashmap.New[string, struct{}](),
}
}

// Register registers a channel that will receive the endpoints later
Expand Down

0 comments on commit c20649c

Please sign in to comment.