refactor(bitswap) perform Publish in HasBlock

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