[skip ci] Refine session util comment (#13167)

Signed-off-by: Edward Zeng <jie.zeng@zilliz.com>
This commit is contained in:
edward.zeng 2021-12-10 16:39:43 +08:00 committed by GitHub
parent b8bc185572
commit 7ffabb6193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ const (
type Session struct {
ctx context.Context
// When outside context done, Session cancels its goroutines first, then uses
// keepAliceCancel to cancel the etcd KeepAlive
// keepAliveCancel to cancel the etcd KeepAlive
keepAliveCancel context.CancelFunc
ServerID int64 `json:"ServerID,omitempty"`
@ -340,7 +340,7 @@ func (w *sessionWatcher) start() {
}()
}
// WatchServices watch the service's up and down in etcd, and send event to
// WatchServices watches the service's up and down in etcd, and sends event to
// eventChannel.
// prefix is a parameter to know which service to watch and can be obtained in
// typeutil.type.go.