[skip ci] Refine session util comment ()

Signed-off-by: Edward Zeng <jie.zeng@zilliz.com>
pull/13185/head
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
1 changed files with 2 additions and 2 deletions
internal/util/sessionutil

View File

@ -52,7 +52,7 @@ const (
type Session struct { type Session struct {
ctx context.Context ctx context.Context
// When outside context done, Session cancels its goroutines first, then uses // 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 keepAliveCancel context.CancelFunc
ServerID int64 `json:"ServerID,omitempty"` 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. // eventChannel.
// prefix is a parameter to know which service to watch and can be obtained in // prefix is a parameter to know which service to watch and can be obtained in
// typeutil.type.go. // typeutil.type.go.