1
0
mirror of https://github.com/redis/go-redis.git synced 2025-06-12 14:21:52 +03:00

Fix Client process instrumentation.

This commit is contained in:
Vladimir Mihailenco
2016-12-30 12:58:04 +02:00
parent 57efac6c84
commit 9556378547
3 changed files with 22 additions and 40 deletions

View File

@ -293,12 +293,14 @@ type Client struct {
}
func newClient(opt *Options, pool pool.Pooler) *Client {
base := baseClient{opt: opt, connPool: pool}
client := &Client{
baseClient: base,
cmdable: cmdable{base.Process},
client := Client{
baseClient: baseClient{
opt: opt,
connPool: pool,
},
}
return client
client.cmdable.process = client.Process
return &client
}
// NewClient returns a client to the Redis Server specified by Options.