fix(bitswap) compiler errors

didn't run tests after the refactor. apologies.