From 2a7ce9411b5f6756dcb4668241f52b5367cf695f Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Mon, 9 Sep 2024 18:58:31 +0300 Subject: [PATCH] fixup options Signed-off-by: Vasiliy Tolstov --- options.go | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/options.go b/options.go index 275fa68..2fc0fc5 100644 --- a/options.go +++ b/options.go @@ -7,20 +7,13 @@ import ( "go.unistack.org/micro/v3/broker" "go.unistack.org/micro/v3/logger" "go.unistack.org/micro/v3/meter" - "go.unistack.org/micro/v3/store" "go.unistack.org/micro/v3/tracer" ) type configKey struct{} -func Config(c *redis.Options) store.Option { - return store.SetOption(configKey{}, c) -} - -type clusterConfigKey struct{} - -func ClusterConfig(c *redis.ClusterOptions) store.Option { - return store.SetOption(clusterConfigKey{}, c) +func Config(c *redis.UniversalOptions) broker.Option { + return broker.SetOption(configKey{}, c) } var (