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
No related branches found
No related tags found
2 merge requests!510Release,!376Improve comments to specify how period is formatted
......@@ -270,7 +270,7 @@ func (f *FileTransfer) CloseSend(tidBytes []byte) error {
// - callback - callback that reports file reception progress
// - period - Duration (in ms) to wait between progress callbacks triggering.
// 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,
callback FileTransferSentProgressCallback, period int) error {
cb := func(completed bool, arrived, total uint16,
......@@ -300,7 +300,7 @@ func (f *FileTransfer) RegisterSentProgressCallback(tidBytes []byte,
// - callback - callback that reports file reception progress
// - period - Duration (in ms) to wait between progress callbacks triggering.
// 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,
callback FileTransferReceiveProgressCallback, period int) error {
cb := func(completed bool, received, total uint16,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment