From 61879bd3ea366fbbd569f5531c34b25f33521649 Mon Sep 17 00:00:00 2001 From: Cai Yudong Date: Fri, 1 Oct 2021 01:02:25 +0800 Subject: [PATCH] [skip ci] Update comment for alloc timestamp (#8925) Signed-off-by: yudong.cai --- internal/types/types.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/internal/types/types.go b/internal/types/types.go index 3a482b6517..0a5e1c43c3 100644 --- a/internal/types/types.go +++ b/internal/types/types.go @@ -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)