Commit a3c17d58 authored by Russ Cox's avatar Russ Cox

channel direction fixes

R=dsymonds
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=29210
CL=29215
parent c2fa45b9
......@@ -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 };
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment