[skip ci] Add comments for NewProxy (#9415)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
pull/9421/head
dragondriver 2021-10-07 20:24:40 +08:00 committed by GitHub
parent c8615f6872
commit 59265ed753
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@ type Proxy struct {
closeCallbacks []func()
}
// NewProxy returns a Proxy struct.
func NewProxy(ctx context.Context, factory msgstream.Factory) (*Proxy, error) {
rand.Seed(time.Now().UnixNano())
ctx1, cancel := context.WithCancel(ctx)