Commit 0163be78 authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Jeromy

simplify

License: MIT
Signed-off-by: default avatarBrian Tiger Chow <brian@perfmode.com>
parent 599e3088
...@@ -91,10 +91,7 @@ func (bs *bitswap) GetBlock(parent context.Context, k u.Key) (*blocks.Block, err ...@@ -91,10 +91,7 @@ func (bs *bitswap) GetBlock(parent context.Context, k u.Key) (*blocks.Block, err
ctx = eventlog.ContextWithMetadata(ctx, eventlog.Uuid("GetBlockRequest")) ctx = eventlog.ContextWithMetadata(ctx, eventlog.Uuid("GetBlockRequest"))
log.Event(ctx, "GetBlockRequestBegin", &k) log.Event(ctx, "GetBlockRequestBegin", &k)
defer log.Event(ctx, "GetBlockRequestEnd", &k)
defer func() {
log.Event(ctx, "GetBlockRequestEnd", &k)
}()
bs.wantlist.Add(k) bs.wantlist.Add(k)
promise := bs.notifications.Subscribe(ctx, k) promise := bs.notifications.Subscribe(ctx, k)
......
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