projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
14738: Enhances code readability when concatenating strings.
[arvados.git]
/
services
/
keepstore
/
work_queue.go
diff --git
a/services/keepstore/work_queue.go
b/services/keepstore/work_queue.go
index f1878ffbbc550250ab88c5ea9a4a694d12d63132..56c6376ad37134d0ed7f9f12cc049255b83fcb65 100644
(file)
--- a/
services/keepstore/work_queue.go
+++ b/
services/keepstore/work_queue.go
@@
-1,3
+1,7
@@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
package main
/* A WorkQueue is an asynchronous thread-safe queue manager. It
package main
/* A WorkQueue is an asynchronous thread-safe queue manager. It
@@
-84,6
+88,7
@@
package main
import "container/list"
import "container/list"
+// WorkQueue definition
type WorkQueue struct {
getStatus chan WorkQueueStatus
newlist chan *list.List
type WorkQueue struct {
getStatus chan WorkQueueStatus
newlist chan *list.List
@@
-96,6
+101,7
@@
type WorkQueue struct {
DoneItem chan<- struct{}
}
DoneItem chan<- struct{}
}
+// WorkQueueStatus reflects the queue status.
type WorkQueueStatus struct {
InProgress int
Queued int
type WorkQueueStatus struct {
InProgress int
Queued int