From ed810b45bf73a40c3c486e5e2417c64bc8daffaf Mon Sep 17 00:00:00 2001 From: beorn7 Date: Fri, 8 May 2015 13:35:39 +0200 Subject: [PATCH] Improvements after review. --- storage/local/mapper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/local/mapper.go b/storage/local/mapper.go index c86cebacbd..4c863ec387 100644 --- a/storage/local/mapper.go +++ b/storage/local/mapper.go @@ -23,7 +23,7 @@ type fpMappings map[clientmodel.Fingerprint]map[string]clientmodel.Fingerprint // fpMapper is used to map fingerprints in order to work around fingerprint // collisions. type fpMapper struct { - mtx sync.RWMutex // Protects collisions. + mtx sync.RWMutex // Protects mappings. mappings fpMappings fpToSeries *seriesMap @@ -32,7 +32,7 @@ type fpMapper struct { } // newFPMapper loads the collision map from the persistence and -// returns an fpCollisionResolver ready to use. +// returns an fpMapper ready to use. func newFPMapper(fpToSeries *seriesMap, p *persistence) (*fpMapper, error) { r := &fpMapper{ fpToSeries: fpToSeries,