From 21cd147cb68d225973cc0451985729009a23dffa Mon Sep 17 00:00:00 2001 From: jbhusson <jonah@elixxir.io> Date: Tue, 13 Sep 2022 14:16:41 -0400 Subject: [PATCH] Add suggested values for period --- bindings/fileTransfer.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bindings/fileTransfer.go b/bindings/fileTransfer.go index e41405602..79e4bbb86 100644 --- a/bindings/fileTransfer.go +++ b/bindings/fileTransfer.go @@ -296,7 +296,8 @@ func (f *FileTransfer) RegisterSentProgressCallback(tidBytes []byte, // Parameters: // - tidBytes - file transfer ID // - callback - callback that reports file reception progress -// - period - duration (in ms) to wait between progress callbacks triggering +// - period - Duration (in ms) to wait between progress callbacks triggering. +// Suggested default: 50 func (f *FileTransfer) RegisterReceivedProgressCallback(tidBytes []byte, callback FileTransferReceiveProgressCallback, period int) error { cb := func(completed bool, received, total uint16, -- GitLab