From dc3c72b9b6d426c2b06fdbe04c5a29a0776084b9 Mon Sep 17 00:00:00 2001 From: Jiquan Long Date: Fri, 24 Dec 2021 19:29:33 +0800 Subject: [PATCH] [skip e2e] Add comment for AllocOne (#14202) Signed-off-by: dragondriver --- internal/proxy/timestamp.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/proxy/timestamp.go b/internal/proxy/timestamp.go index 33a45a3fc0..754c5b6d68 100644 --- a/internal/proxy/timestamp.go +++ b/internal/proxy/timestamp.go @@ -72,6 +72,7 @@ func (ta *timestampAllocator) alloc(count uint32) ([]Timestamp, error) { return ret, nil } +// AllocOne allocates a timestamp. func (ta *timestampAllocator) AllocOne() (Timestamp, error) { ret, err := ta.alloc(1) if err != nil {