From 43fdab312a88e76752422098a65d508d303c0ecd Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Fri, 31 May 2019 17:37:34 +0300 Subject: [PATCH] Update changelog --- CHANGELOG.md | 7 ++++++- sentinel.go | 5 ++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19645661..ec9c4608 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Changelog -## Unreleased +## v7 WIP + +- WrapProcess is replaced with more convenient AddHook that has access to context.Context. +- WithContext no longer creates shallow copy. + +## v6.15 - Cluster and Ring pipelines process commands for each node in its own goroutine. diff --git a/sentinel.go b/sentinel.go index 16f88d6c..bf43a165 100644 --- a/sentinel.go +++ b/sentinel.go @@ -103,15 +103,14 @@ func NewFailoverClient(failoverOpt *FailoverOptions) *Client { //------------------------------------------------------------------------------ type SentinelClient struct { - baseClient - + *baseClient ctx context.Context } func NewSentinelClient(opt *Options) *SentinelClient { opt.init() c := &SentinelClient{ - baseClient: baseClient{ + baseClient: &baseClient{ opt: opt, connPool: newConnPool(opt), },