[skip ci] Add comments for exported funcs in internal/proxy/task.go (#11980)

Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>
pull/12000/head
shaoyue 2021-11-17 16:13:17 +08:00 committed by GitHub
parent 6e5334ab11
commit b231965e15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -4718,22 +4718,27 @@ type CreateAliasTask struct {
result *commonpb.Status
}
// TraceCtx returns the trace context of the task.
func (c *CreateAliasTask) TraceCtx() context.Context {
return c.ctx
}
// ID return the id of the task
func (c *CreateAliasTask) ID() UniqueID {
return c.Base.MsgID
}
// SetID sets the id of the task
func (c *CreateAliasTask) SetID(uid UniqueID) {
c.Base.MsgID = uid
}
// Name returns the name of the task
func (c *CreateAliasTask) Name() string {
return CreateAliasTaskName
}
// Type returns the type of the task
func (c *CreateAliasTask) Type() commonpb.MsgType {
return c.Base.MsgType
}