Skip to content
Snippets Groups Projects
Commit 7f90d79e authored by Jonah Husson's avatar Jonah Husson
Browse files

Remove suggested value for period

parent 8e4b163a
Branches
Tags
2 merge requests!510Release,!376Improve comments to specify how period is formatted
...@@ -270,7 +270,7 @@ func (f *FileTransfer) CloseSend(tidBytes []byte) error { ...@@ -270,7 +270,7 @@ func (f *FileTransfer) CloseSend(tidBytes []byte) error {
// - callback - callback that reports file reception progress // - 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.
// This value should depend on how frequently you want to receive // This value should depend on how frequently you want to receive
// updates. Suggested default: 50 // updates, and should be tuned to your implementation.
func (f *FileTransfer) RegisterSentProgressCallback(tidBytes []byte, func (f *FileTransfer) RegisterSentProgressCallback(tidBytes []byte,
callback FileTransferSentProgressCallback, period int) error { callback FileTransferSentProgressCallback, period int) error {
cb := func(completed bool, arrived, total uint16, cb := func(completed bool, arrived, total uint16,
...@@ -300,7 +300,7 @@ func (f *FileTransfer) RegisterSentProgressCallback(tidBytes []byte, ...@@ -300,7 +300,7 @@ func (f *FileTransfer) RegisterSentProgressCallback(tidBytes []byte,
// - callback - callback that reports file reception progress // - 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.
// This value should depend on how frequently you want to receive // This value should depend on how frequently you want to receive
// updates. Suggested default: 50 // updates, and should be tuned to your implementation.
func (f *FileTransfer) RegisterReceivedProgressCallback(tidBytes []byte, func (f *FileTransfer) RegisterReceivedProgressCallback(tidBytes []byte,
callback FileTransferReceiveProgressCallback, period int) error { callback FileTransferReceiveProgressCallback, period int) error {
cb := func(completed bool, received, total uint16, cb := func(completed bool, received, total uint16,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment