Closed leijurv closed 2 years ago
I figured this was okay since you use struct{} elsewhere, such as map[*ManagedChannel]struct{} in queue.go and chan struct{} in channel.go.
struct{}
map[*ManagedChannel]struct{}
queue.go
chan struct{}
channel.go
This isn't a very big memory concern, I'll keep the better ergonomics.
I figured this was okay since you use
struct{}
elsewhere, such asmap[*ManagedChannel]struct{}
inqueue.go
andchan struct{}
inchannel.go
.