Skip to content

Commit

Permalink
Fix lint and genny gen
Browse files Browse the repository at this point in the history
  • Loading branch information
robskillington committed Jan 4, 2021
1 parent 1bfcd6d commit 415bd44
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 110 deletions.
20 changes: 0 additions & 20 deletions src/m3ninx/index/segment/builder/fields_map_new.go
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
// Copyright (c) 2020 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

// This file was automatically generated by genny.
// Any changes will be lost if this file is regenerated.
// see https://github.com/mauricelam/genny
Expand Down
20 changes: 0 additions & 20 deletions src/m3ninx/index/segment/builder/ids_map_new.go
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
// Copyright (c) 2020 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

// This file was automatically generated by genny.
// Any changes will be lost if this file is regenerated.
// see https://github.com/mauricelam/genny
Expand Down
20 changes: 0 additions & 20 deletions src/m3ninx/index/segment/builder/postings_map_new.go
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
// Copyright (c) 2020 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

// This file was automatically generated by genny.
// Any changes will be lost if this file is regenerated.
// see https://github.com/mauricelam/genny
Expand Down
20 changes: 0 additions & 20 deletions src/m3ninx/index/segment/mem/fields_map_new.go
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
// Copyright (c) 2020 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

// This file was automatically generated by genny.
// Any changes will be lost if this file is regenerated.
// see https://github.com/mauricelam/genny
Expand Down
3 changes: 0 additions & 3 deletions src/metrics/matcher/match.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ type Matcher interface {
}

type matcher struct {
opts Options
namespaceResolver namespaceResolver
namespaces Namespaces
cache cache.Cache
Expand Down Expand Up @@ -94,7 +93,6 @@ func NewMatcher(cache cache.Cache, opts Options) (Matcher, error) {
}

return &matcher{
opts: opts,
namespaceResolver: nsResolver,
namespaces: namespaces,
cache: cache,
Expand All @@ -115,7 +113,6 @@ func (m *matcher) Close() error {
}

type noCacheMatcher struct {
opts Options
namespaces Namespaces
namespaceResolver namespaceResolver
}
Expand Down
14 changes: 7 additions & 7 deletions src/metrics/matcher/match_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ func TestMatcherMatchExistsNoCache(t *testing.T) {
storeSetup: func(t *testing.T, store kv.TxnStore) {
_, err := store.Set(testNamespacesKey, &rulepb.Namespaces{
Namespaces: []*rulepb.Namespace{
&rulepb.Namespace{
{
Name: ns,
Snapshots: []*rulepb.NamespaceSnapshot{
&rulepb.NamespaceSnapshot{
{
ForRulesetVersion: 1,
Tombstoned: false,
},
Expand All @@ -160,15 +160,15 @@ func TestMatcherMatchExistsNoCache(t *testing.T) {
_, err = store.Set("/ruleset/fooNs", &rulepb.RuleSet{
Namespace: ns,
MappingRules: []*rulepb.MappingRule{
&rulepb.MappingRule{
{
Snapshots: []*rulepb.MappingRuleSnapshot{
&rulepb.MappingRuleSnapshot{
{
Filter: "fooTag:fooValue",
AggregationTypes: []aggregationpb.AggregationType{
aggregationpb.AggregationType_LAST,
},
StoragePolicies: []*policypb.StoragePolicy{
&policypb.StoragePolicy{
{
Resolution: policypb.Resolution{
WindowSize: int64(time.Minute),
Precision: int64(time.Minute),
Expand Down Expand Up @@ -242,10 +242,10 @@ func testMatcher(t *testing.T, opts testMatcherOptions) Matcher {
SetMatchRangePast(0)
proto = &rulepb.Namespaces{
Namespaces: []*rulepb.Namespace{
&rulepb.Namespace{
{
Name: "fooNs",
Snapshots: []*rulepb.NamespaceSnapshot{
&rulepb.NamespaceSnapshot{
{
ForRulesetVersion: 1,
Tombstoned: true,
},
Expand Down
20 changes: 0 additions & 20 deletions src/query/graphite/storage/series_metadata_map_new.go
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
// Copyright (c) 2020 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

// This file was automatically generated by genny.
// Any changes will be lost if this file is regenerated.
// see https://github.com/mauricelam/genny
Expand Down

0 comments on commit 415bd44

Please sign in to comment.