[skip e2e] Add comment for AllocOne (#14202)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
pull/14205/merge
Jiquan Long 2021-12-24 19:29:33 +08:00 committed by GitHub
parent 3e2332bb3c
commit dc3c72b9b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -72,6 +72,7 @@ func (ta *timestampAllocator) alloc(count uint32) ([]Timestamp, error) {
return ret, nil return ret, nil
} }
// AllocOne allocates a timestamp.
func (ta *timestampAllocator) AllocOne() (Timestamp, error) { func (ta *timestampAllocator) AllocOne() (Timestamp, error) {
ret, err := ta.alloc(1) ret, err := ta.alloc(1)
if err != nil { if err != nil {