[skip ci] Add comment for tSafe replica (#8495)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
bigsheeper 2021-09-24 20:52:13 +08:00 committed by GitHub
parent 816bac82ec
commit 6bc4379de5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,7 @@ type tSafeRef struct {
ref int
}
// tSafeReplica implements `TSafeReplicaInterface` interface.
type tSafeReplica struct {
mu sync.Mutex // guards tSafes
tSafes map[Channel]*tSafeRef // map[vChannel]tSafeRef