From e0d254993d1ca1c70cd37a518f78f4982e343b28 Mon Sep 17 00:00:00 2001 From: Ziqi Zhao Date: Thu, 29 Jun 2023 20:00:27 +0800 Subject: [PATCH] fix exhaustive lint for receivercreater Signed-off-by: Ziqi Zhao --- .golangci.yml | 3 --- receiver/receivercreator/config_test.go | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index bc7e8f291635..6e417bf10812 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -176,9 +176,6 @@ issues: - path: prometheusreceiver linters: - exhaustive - - path: receivercreator - linters: - - exhaustive - path: statsdreceiver linters: - exhaustive diff --git a/receiver/receivercreator/config_test.go b/receiver/receivercreator/config_test.go index 5bff309a7e92..666a691e4dfa 100644 --- a/receiver/receivercreator/config_test.go +++ b/receiver/receivercreator/config_test.go @@ -39,6 +39,8 @@ func (mh *mockHostFactories) GetFactory(kind component.Kind, componentType compo return mh.factories.Exporters[componentType] case component.KindExtension: return mh.factories.Extensions[componentType] + case component.KindConnector: + return mh.factories.Connectors[componentType] } return nil }