@cryptotaxi247 / kubo / commits / 9835c1e33

doc(bitswap) fix duplicaduplication

@whyrusleeping https://github.com/jbenet/go-ipfs/commit/ada571425bc688b459cd34810fd398e5547b48a0#commitcomment-8753622 License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>

Brian Tiger Chow committed Nov 27, 2014 at 16:01 UTC 9835c1e335ac4205f1fc18269cc392b4c1a25683
1 file changed +2 -3
exchange/bitswap/bitswap.go
+2 -3
@@ -95,9 +95,8 @@ func (bs *bitswap) GetBlock(parent context.Context, k u.Key) (*blocks.Block, err
95 // returns. To ensure this, derive a new context. Note that it is okay to
96 // listen on parent in this scope, but NOT okay to pass |parent| to
97 // functions called by this one. Otherwise those functions won't return
98 - // when this context Otherwise those functions won't return when this
99 - // context's cancel func is executed. This is difficult to enforce. May
100 - // this comment keep you safe.
98 + // when this context's cancel func is executed. This is difficult to
99 + // enforce. May this comment keep you safe.
100
101 ctx, cancelFunc := context.WithCancel(parent)
102