Skip to content

Commit

Permalink
升级链路
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Oct 19, 2024
1 parent 603aa37 commit bbdd593
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package etcd
import (
"context"
"encoding/json"
"strings"
"time"

"github.com/farseer-go/fs/container"
"github.com/farseer-go/fs/flog"
"github.com/farseer-go/fs/trace"
etcdV3 "go.etcd.io/etcd/client/v3"
"go.etcd.io/etcd/client/v3/concurrency"
"strings"
"time"
)

var todo = context.TODO()
Expand Down Expand Up @@ -163,7 +164,7 @@ func (receiver *client) Watch(ctx context.Context, key string, watchFunc func(ev
}
entryWatchKey := receiver.traceManager.EntryWatchKey(key)
watchFunc(watchEvent)
entryWatchKey.End()
entryWatchKey.End(nil)
}
}
flog.Info("退出了")
Expand All @@ -182,7 +183,7 @@ func (receiver *client) WatchPrefixKey(ctx context.Context, prefixKey string, wa
}
entryWatchKey := receiver.traceManager.EntryWatchKey(prefixKey)
watchFunc(watchEvent)
entryWatchKey.End()
entryWatchKey.End(nil)
}
}
flog.Info("退出了")
Expand Down

0 comments on commit bbdd593

Please sign in to comment.