[ARVADOS] updated: 9333c9f65503d86c12776e0bc8bfcb6fc07dc79c

Git user git at public.curoverse.com
Fri Feb 10 13:16:59 EST 2017


Summary of changes:
 sdk/go/dispatch/dispatch.go | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

       via  9333c9f65503d86c12776e0bc8bfcb6fc07dc79c (commit)
      from  cff6cd57cbbaa032602ca2fb930c78812c5824dc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 9333c9f65503d86c12776e0bc8bfcb6fc07dc79c
Author: Tom Clegg <tom at curoverse.com>
Date:   Fri Feb 10 13:16:47 2017 -0500

    10701: Fix chan type.

diff --git a/sdk/go/dispatch/dispatch.go b/sdk/go/dispatch/dispatch.go
index 722d4ee..5341369 100644
--- a/sdk/go/dispatch/dispatch.go
+++ b/sdk/go/dispatch/dispatch.go
@@ -103,8 +103,7 @@ func (d *Dispatcher) runningUUIDs() []string {
 // Start a runner in a new goroutine, and send the initial container
 // record to its updates channel.
 func (d *Dispatcher) start(c arvados.Container) *runTracker {
-	updates := make(chan arvados.Container, 1)
-	tracker := &runTracker{updates: updates}
+	tracker := &runTracker{updates: make(chan arvados.Container, 1)}
 	tracker.updates <- c
 	go func() {
 		d.RunContainer(d, c, tracker.updates)
@@ -204,7 +203,7 @@ func (d *Dispatcher) Unlock(uuid string) error {
 
 type runTracker struct {
 	closing bool
-	updates chan<- arvados.Container
+	updates chan arvados.Container
 }
 
 func (tracker *runTracker) close() {

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list