Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: common/api/logdog_coordinator/services/v1/util.go

Issue 1863973002: LogDog: Update to archival V2. (Closed) Base URL: https://github.com/luci/luci-go@grpcutil-errors
Patch Set: Fix proto comment. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « common/api/logdog_coordinator/services/v1/tasks.pb.go ('k') | common/errors/multierror.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package logdog
6
7 // Complete returns true if the archive request expresses that the archived
8 // log stream was complete.
9 //
10 // A log stream is complete if every entry between zero and its terminal index
11 // is included.
12 func (ar *ArchiveStreamRequest) Complete() bool {
13 tidx := ar.TerminalIndex
14 if tidx < 0 {
15 tidx = -1
16 }
17 return (ar.LogEntryCount == (tidx + 1))
18 }
OLDNEW
« no previous file with comments | « common/api/logdog_coordinator/services/v1/tasks.pb.go ('k') | common/errors/multierror.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698