Merge pull request #8820 from filecoin-project/asr/deprecate-blocksync

refactor: remove old BlockSyncProtocolID
This commit is contained in:
Łukasz Magiera
2022-06-13 18:36:21 +02:00
committed by GitHub
3 changed files with 4 additions and 9 deletions
-1
View File
@@ -98,7 +98,6 @@ func RunPeerMgr(mctx helpers.MetricsCtx, lc fx.Lifecycle, pmgr *peermgr.PeerMgr)
}
func RunChainExchange(h host.Host, svc exchange.Server) {
h.SetStreamHandler(exchange.BlockSyncProtocolID, svc.HandleStream) // old
h.SetStreamHandler(exchange.ChainExchangeProtocolID, svc.HandleStream) // new
}