From 11cf9400d58a23fe233f2544ed4cd55b7a373f89 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Tue, 11 Dec 2018 13:17:41 +0200 Subject: [PATCH] Consistent naming --- commands.go | 4 ++-- commands_test.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/commands.go b/commands.go index 6e873f2..6e925af 100644 --- a/commands.go +++ b/commands.go @@ -231,7 +231,7 @@ type Cmdable interface { ClientKillByFilter(keys ...string) *IntCmd ClientList() *StringCmd ClientPause(dur time.Duration) *BoolCmd - ClientId() *IntCmd + ClientID() *IntCmd ConfigGet(parameter string) *SliceCmd ConfigResetStat() *StatusCmd ConfigSet(parameter, value string) *StatusCmd @@ -2062,7 +2062,7 @@ func (c *cmdable) ClientPause(dur time.Duration) *BoolCmd { return cmd } -func (c *cmdable) ClientId() *IntCmd { +func (c *cmdable) ClientID() *IntCmd { cmd := NewIntCmd("client", "id") c.process(cmd) return cmd diff --git a/commands_test.go b/commands_test.go index ecca35c..ea646be 100644 --- a/commands_test.go +++ b/commands_test.go @@ -121,10 +121,10 @@ var _ = Describe("Commands", func() { Expect(r.Val()).To(Equal(int64(0))) }) - It("should ClientId", func() { - err := client.ClientId().Err() + It("should ClientID", func() { + err := client.ClientID().Err() Expect(err).NotTo(HaveOccurred()) - Expect(client.ClientId().Val()).To(BeNumerically(">=", 0)) + Expect(client.ClientID().Val()).To(BeNumerically(">=", 0)) }) It("should ClientPause", func() {