Use empty struct for close channel.

This commit is contained in:
Joachim Bauch 2023-01-19 14:38:47 +01:00
parent 758899b745
commit 2a47829164
No known key found for this signature in database
GPG Key ID: 77C1D22D53E15F02
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ type asyncSubscriberNats struct {
client NatsClient
receiver chan *nats.Msg
closeChan chan bool
closeChan chan struct{}
subscription NatsSubscription
processMessage func(*nats.Msg)
@ -80,7 +80,7 @@ func newAsyncSubscriberNats(key string, client NatsClient) (*asyncSubscriberNats
client: client,
receiver: receiver,
closeChan: make(chan bool),
closeChan: make(chan struct{}),
subscription: sub,
}
return result, nil