mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-26 12:57:44 +08:00
simplify
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
This commit is contained in:
parent
e5983cbe7d
commit
f8243c36be
@ -91,10 +91,7 @@ func (bs *bitswap) GetBlock(parent context.Context, k u.Key) (*blocks.Block, err
|
||||
|
||||
ctx = eventlog.ContextWithMetadata(ctx, eventlog.Uuid("GetBlockRequest"))
|
||||
log.Event(ctx, "GetBlockRequestBegin", &k)
|
||||
|
||||
defer func() {
|
||||
log.Event(ctx, "GetBlockRequestEnd", &k)
|
||||
}()
|
||||
defer log.Event(ctx, "GetBlockRequestEnd", &k)
|
||||
|
||||
bs.wantlist.Add(k)
|
||||
promise := bs.notifications.Subscribe(ctx, k)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user