From 8df529dffed154b309054beaecd9817ee5d1a299 Mon Sep 17 00:00:00 2001 From: Gilbert Chen Date: Thu, 7 Apr 2022 23:34:48 -0400 Subject: [PATCH] Fixed the type of a test parameter --- src/duplicacy_snapshotmanager_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duplicacy_snapshotmanager_test.go b/src/duplicacy_snapshotmanager_test.go index 6e84c067..ef8da492 100644 --- a/src/duplicacy_snapshotmanager_test.go +++ b/src/duplicacy_snapshotmanager_test.go @@ -116,7 +116,7 @@ func createTestSnapshotManager(testDir string) *SnapshotManager { func uploadTestChunk(manager *SnapshotManager, content []byte) string { - chunkOperator := CreateChunkOperator(manager.config, manager.storage, nil, false, testThreads, false) + chunkOperator := CreateChunkOperator(manager.config, manager.storage, nil, false, *testThreads, false) chunkOperator.UploadCompletionFunc = func(chunk *Chunk, chunkIndex int, skipped bool, chunkSize int, uploadSize int) { LOG_INFO("UPLOAD_CHUNK", "Chunk %s size %d uploaded", chunk.GetID(), chunkSize) }