Improvements after review.

This commit is contained in:
beorn7 2015-05-08 13:35:39 +02:00
parent c36e0e05f1
commit ed810b45bf
1 changed files with 2 additions and 2 deletions

View File

@ -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 // fpMapper is used to map fingerprints in order to work around fingerprint
// collisions. // collisions.
type fpMapper struct { type fpMapper struct {
mtx sync.RWMutex // Protects collisions. mtx sync.RWMutex // Protects mappings.
mappings fpMappings mappings fpMappings
fpToSeries *seriesMap fpToSeries *seriesMap
@ -32,7 +32,7 @@ type fpMapper struct {
} }
// newFPMapper loads the collision map from the persistence and // 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) { func newFPMapper(fpToSeries *seriesMap, p *persistence) (*fpMapper, error) {
r := &fpMapper{ r := &fpMapper{
fpToSeries: fpToSeries, fpToSeries: fpToSeries,