Merge pull request #4980 from filecoin-project/feat/add-data-transfer-logging-to-miner

Add logging on data-transfer to miner
This commit is contained in:
Łukasz Magiera 2020-11-23 22:20:14 +01:00 committed by GitHub
commit bb25eb980d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -300,6 +300,7 @@ func NewProviderDAGServiceDataTransfer(lc fx.Lifecycle, h host.Host, gs dtypes.S
dt.OnReady(marketevents.ReadyLogger("provider data transfer")) dt.OnReady(marketevents.ReadyLogger("provider data transfer"))
lc.Append(fx.Hook{ lc.Append(fx.Hook{
OnStart: func(ctx context.Context) error { OnStart: func(ctx context.Context) error {
dt.SubscribeToEvents(marketevents.DataTransferLogger)
return dt.Start(ctx) return dt.Start(ctx)
}, },
OnStop: func(ctx context.Context) error { OnStop: func(ctx context.Context) error {