From ee6b698edbe56b4d81d4b0522b856814d9717d36 Mon Sep 17 00:00:00 2001 From: Marty Schoch Date: Sun, 2 Oct 2016 11:32:46 -0400 Subject: [PATCH] rename variable with _ --- registry/index_type.go | 6 +++--- registry/registry.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/registry/index_type.go b/registry/index_type.go index 17c61f4e..4da07c82 100644 --- a/registry/index_type.go +++ b/registry/index_type.go @@ -21,18 +21,18 @@ import ( ) func RegisterIndexType(name string, constructor IndexTypeConstructor) { - _, exists := index_types[name] + _, exists := indexTypes[name] if exists { panic(fmt.Errorf("attempted to register duplicate index encoding named '%s'", name)) } - index_types[name] = constructor + indexTypes[name] = constructor } type IndexTypeConstructor func(storeName string, storeConfig map[string]interface{}, analysisQueue *index.AnalysisQueue) (index.Index, error) type IndexTypeRegistry map[string]IndexTypeConstructor func IndexTypeConstructorByName(name string) IndexTypeConstructor { - return index_types[name] + return indexTypes[name] } func IndexTypesAndInstances() ([]string, []string) { diff --git a/registry/registry.go b/registry/registry.go index 27306476..a0ea69c8 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -22,7 +22,7 @@ import ( ) var stores = make(KVStoreRegistry, 0) -var index_types = make(IndexTypeRegistry, 0) +var indexTypes = make(IndexTypeRegistry, 0) // highlight var fragmentFormatters = make(FragmentFormatterRegistry, 0)