17698: Rename newPutResult to match new putProgress type name.
authorTom Clegg <tom@curii.com>
Mon, 23 Aug 2021 14:00:50 +0000 (10:00 -0400)
committerTom Clegg <tom@curii.com>
Mon, 23 Aug 2021 14:00:50 +0000 (10:00 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

services/keepstore/handlers.go

index 81f7fcd123704f53f6399f75023bf82768ba387e..4459adfa1c1a6ffc20866fc9622344b300d2eb75 100644 (file)
@@ -837,7 +837,7 @@ func (pr *putProgress) Copy() *putProgress {
        return &cp
 }
 
-func newPutResult(classes []string) putProgress {
+func newPutProgress(classes []string) putProgress {
        pr := putProgress{
                classNeeded: make(map[string]bool, len(classes)),
                classTodo:   make(map[string]bool, len(classes)),
@@ -890,7 +890,7 @@ func PutBlock(ctx context.Context, volmgr *RRVolumeManager, block []byte, hash s
                return putProgress{}, RequestHashError
        }
 
-       result := newPutResult(wantStorageClasses)
+       result := newPutProgress(wantStorageClasses)
 
        // If we already have this data, it's intact on disk, and we
        // can update its timestamp, return success. If we have