Skip to content

Commit 8d89dfa

Browse files
author
Wang Mengtao
authored
remove NewEnvClient() of func newContext() (#39)
1 parent 4c34583 commit 8d89dfa

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

context/context.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,18 +125,12 @@ func newContext() (*ctx, error) {
125125
logger = log.With(log.Any("service", sn), log.Any("instance", in))
126126
logger.Error("failed to init logger", log.Error(err))
127127
}
128-
cli, err := NewEnvClient()
129-
if err != nil {
130-
fmt.Fprintf(os.Stderr, "[%s][%s] failed to create master client: %s\n", sn, in, err.Error())
131-
logger.Error("failed to create master client", log.Error(err))
132-
}
133128
return &ctx{
134129
sn: sn,
135130
in: in,
136131
md: md,
137132
cfg: cfg,
138133
log: logger,
139-
Client: cli,
140134
}, nil
141135
}
142136

0 commit comments

Comments
 (0)