@cryptotaxi247 / kubo / commits / a4f2d1d2f

buffer error chan to prevent dead goro buildup

License: MIT Signed-off-by: Jeromy <why@ipfs.io>

Jeromy committed Jun 1, 2016 at 12:18 UTC a4f2d1d2f798c827bb2e869ac3ac7eda54cfaef5
1 file changed +1 -1
namesys/publisher.go
+1 -1
@@ -146,7 +146,7 @@ func PutRecordToRouting(ctx context.Context, k ci.PrivKey, value path.Path, seqn
146 entry.Ttl = proto.Uint64(uint64(ttl.Nanoseconds()))
147 }
148
149 - errs := make(chan error)
149 + errs := make(chan error, 2)
150
151 go func() {
152 errs <- PublishEntry(ctx, r, ipnskey, entry)