summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/cli/serve/command.go6
-rw-r--r--internal/rpc/client.go3
2 files changed, 0 insertions, 9 deletions
diff --git a/internal/cli/serve/command.go b/internal/cli/serve/command.go
index 37f26aef..6c6d2e1f 100644
--- a/internal/cli/serve/command.go
+++ b/internal/cli/serve/command.go
@@ -16,11 +16,6 @@ import (
"github.com/spf13/cobra"
)
-const (
- rrPrefix string = "rr"
-)
-
-// NewCommand creates `serve` command.
func NewCommand(override *[]string, cfgFile *string, silent *bool, experimental *bool) *cobra.Command { //nolint:funlen
return &cobra.Command{
Use: "serve",
@@ -40,7 +35,6 @@ func NewCommand(override *[]string, cfgFile *string, silent *bool, experimental
cfg := &configImpl.Plugin{
Path: *cfgFile,
- Prefix: rrPrefix,
Timeout: containerCfg.GracePeriod,
Flags: *override,
Version: meta.Version(),
diff --git a/internal/rpc/client.go b/internal/rpc/client.go
index 7b3d8f5d..91d4f09b 100644
--- a/internal/rpc/client.go
+++ b/internal/rpc/client.go
@@ -16,7 +16,6 @@ import (
)
const (
- prefix string = "rr"
rpcKey string = "rpc.listen"
// default envs
envDefault = ":-"
@@ -26,8 +25,6 @@ const (
// Client will be connected to the RPC.
func NewClient(cfg string, flags []string) (*rpc.Client, error) {
v := viper.New()
- v.AutomaticEnv()
- v.SetEnvPrefix(prefix)
v.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
v.SetConfigFile(cfg)