• Brian Tiger Chow's avatar
    feat(bitswap:network) propagate errors up the stack · 7b1cda70
    Brian Tiger Chow authored
    Rather than pushing errors back down to lower layers, propagate the
    errors upward.
    
    This commit adds a `ReceiveError` method to BitSwap's network receiver.
    
    Still TODO: rm the error return value from:
    
        net.service.handler.HandleMessage
    
    This is inspired by delegation patterns in found in the wild.
    7b1cda70
network.go 3.62 KB