mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-14 10:20:00 +08:00
fix: routinegroup & etcd watch goroutine leak (#4514)
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
This commit is contained in:
@@ -20,6 +20,7 @@ type (
|
||||
key string
|
||||
exclusive bool
|
||||
exactMatch bool
|
||||
key string
|
||||
items *container
|
||||
}
|
||||
)
|
||||
@@ -31,6 +32,7 @@ type (
|
||||
func NewSubscriber(endpoints []string, key string, opts ...SubOption) (*Subscriber, error) {
|
||||
sub := &Subscriber{
|
||||
endpoints: endpoints,
|
||||
key: key,
|
||||
}
|
||||
for _, opt := range opts {
|
||||
opt(sub)
|
||||
|
||||
Reference in New Issue
Block a user