fix: routinegroup & etcd watch goroutine leak (#4514)

Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
This commit is contained in:
Nanosk07
2025-01-22 13:38:56 +08:00
committed by GitHub
parent 17d98f69e0
commit 33011c7ed1
5 changed files with 93 additions and 20 deletions

View File

@@ -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)