[skip ci] Update comment for alloc timestamp (#8925)

Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
This commit is contained in:
Cai Yudong 2021-10-01 01:02:25 +08:00 committed by GitHub
parent 8e26782fd7
commit 61879bd3ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -295,7 +295,14 @@ type RootCoord interface {
// error is always nil
AlterAlias(ctx context.Context, req *milvuspb.AlterAliasRequest) (*commonpb.Status, error)
//global timestamp allocator
// AllocTimestamp notifies RootCoord to alloc timestamps
//
// ctx is the context to control request deadline and cancellation
// req contains the count of timestamps need to be allocated
//
// The `Status` in response struct `AllocTimestampResponse` indicates if this operation is processed successfully or fail cause;
// `Timestamp` is the first available timestamp allocated
// error is always nil
AllocTimestamp(ctx context.Context, req *rootcoordpb.AllocTimestampRequest) (*rootcoordpb.AllocTimestampResponse, error)
AllocID(ctx context.Context, req *rootcoordpb.AllocIDRequest) (*rootcoordpb.AllocIDResponse, error)
UpdateChannelTimeTick(ctx context.Context, req *internalpb.ChannelTimeTickMsg) (*commonpb.Status, error)