From f888b84ff9fc29c4f0a5404b45ba5425e47a97df Mon Sep 17 00:00:00 2001 From: Lawrence Enehizena Date: Fri, 21 Oct 2022 09:25:48 +0100 Subject: [PATCH] expose data transfer manager for autoretrieve --- filclient.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/filclient.go b/filclient.go index 6400245..be63917 100644 --- a/filclient.go +++ b/filclient.go @@ -304,6 +304,10 @@ func NewClientWithConfig(cfg *Config) (*FilClient, error) { return fc, nil } +func (fc *FilClient) GetDtMgr() datatransfer.Manager { + return fc.dataTransfer +} + func (fc *FilClient) SetPieceCommFunc(pcf GetPieceCommFunc) { fc.computePieceComm = pcf }