@cryptotaxi247 / kubo / commits / f8243c36b

simplify

License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>

Brian Tiger Chow committed Nov 18, 2014 at 22:58 UTC f8243c36be4dfbc33450fdf50e0e2afd9abc5dd2
1 file changed +1 -4
exchange/bitswap/bitswap.go
+1 -4
@@ -91,10 +91,7 @@ func (bs *bitswap) GetBlock(parent context.Context, k u.Key) (*blocks.Block, err
91
92 ctx = eventlog.ContextWithMetadata(ctx, eventlog.Uuid("GetBlockRequest"))
93 log.Event(ctx, "GetBlockRequestBegin", &k)
94 -
95 - defer func() {
96 - log.Event(ctx, "GetBlockRequestEnd", &k)
97 - }()
94 + defer log.Event(ctx, "GetBlockRequestEnd", &k)
95
96 bs.wantlist.Add(k)
97 promise := bs.notifications.Subscribe(ctx, k)