From 0e640b2725dbd2ffd6e8ada0bc6f4f2d82438f5f Mon Sep 17 00:00:00 2001 From: Naoki Kosaka Date: Mon, 10 Dec 2018 00:48:11 +0900 Subject: [PATCH] Fix some miss. --- cli/cli.go | 2 +- cli/config.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cli/cli.go b/cli/cli.go index b9babf1..6fad905 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -62,7 +62,7 @@ func main() { app := cli.NewApp() app.Name = "Activity Relay Extarnal CLI" - app.Usage = "Control Relay configration" + app.Usage = "Configure Activity-Relay" app.Version = "0.2.0rc1" app.Commands = []cli.Command{ { diff --git a/cli/config.go b/cli/config.go index 880114d..dbdf0cf 100644 --- a/cli/config.go +++ b/cli/config.go @@ -86,11 +86,9 @@ func importConfigs(c *cli.Context) { } for _, LimitedDomain := range data.LimitedDomains { relayState.SetLimitedDomain(LimitedDomain, true) - redClient.HSet("relay:config:limitedDomain", LimitedDomain, "1") } for _, BlockedDomain := range data.BlockedDomains { relayState.SetLimitedDomain(BlockedDomain, true) - redClient.HSet("relay:config:blockedDomain", BlockedDomain, "1") } for _, Subscription := range data.Subscriptions { relayState.AddSubscription(state.Subscription{