diff options
author | Russ Cox <rsc@golang.org> | 2009-05-21 17:31:13 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-05-21 17:31:13 -0700 |
commit | ce3abb0d4825319f7db029abe37f105d0efb669e (patch) | |
tree | 3cbbaa9a20daca67bac0658ac3c4a45ab279d1b7 /src/lib/exvar/exvar.go | |
parent | d15dbbbf3148aeb59da490fd1850f57e373d4217 (diff) | |
download | golang-ce3abb0d4825319f7db029abe37f105d0efb669e.tar.gz |
channel direction fixes
R=dsymonds
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=29210
CL=29215
Diffstat (limited to 'src/lib/exvar/exvar.go')
-rw-r--r-- | src/lib/exvar/exvar.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/exvar/exvar.go b/src/lib/exvar/exvar.go index b2c1ad1a0..fea568337 100644 --- a/src/lib/exvar/exvar.go +++ b/src/lib/exvar/exvar.go @@ -102,7 +102,7 @@ func (v *Map) Add(key string, delta int64) { } // TODO(rsc): Make sure map access in separate thread is safe. -func (v *Map) iterate(c <-chan KeyValue) { +func (v *Map) iterate(c chan<- KeyValue) { for k, v := range v.m { c <- KeyValue{ k, v }; } @@ -174,7 +174,7 @@ func NewString(name string) *String { } // TODO(rsc): Make sure map access in separate thread is safe. -func iterate(c <-chan KeyValue) { +func iterate(c chan<- KeyValue) { for k, v := range vars { c <- KeyValue{ k, v }; } |