@cryptotaxi247 / kubo / commits / 58cba8af2

cleanup waitfunc

License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>

Jeromy committed Feb 10, 2016 at 22:09 UTC 58cba8af2846d8c23ce95f7450fc3c03a877b13c
1 file changed +1 -5
namesys/publisher.go
+1 -5
@@ -172,14 +172,10 @@ func PutRecordToRouting(ctx context.Context, k ci.PrivKey, value path.Path, seqn
172 func waitOnErrChan(ctx context.Context, errs chan error) error {
173 select {
174 case err := <-errs:
175 - if err != nil {
176 - return err
177 - }
175 + return err
176 case <-ctx.Done():
177 return ctx.Err()
178 }
181 -
182 - return nil
179 }
180
181 func PublishPublicKey(ctx context.Context, r routing.IpfsRouting, k key.Key, pubk ci.PubKey) error {