From 771ae5f899d89949f53ffae6ac246d81a2164aca Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Thu, 11 Jun 2015 17:17:06 +0300 Subject: [PATCH] script: fix small API inconsistency (backwards compatible). --- script.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.go b/script.go index 96c35f51..3f22f469 100644 --- a/script.go +++ b/script.go @@ -43,7 +43,7 @@ func (s *Script) EvalSha(c scripter, keys []string, args []string) *Cmd { return c.EvalSha(s.hash, keys, args) } -func (s *Script) Run(c *Client, keys []string, args []string) *Cmd { +func (s *Script) Run(c scripter, keys []string, args []string) *Cmd { r := s.EvalSha(c, keys, args) if err := r.Err(); err != nil && strings.HasPrefix(err.Error(), "NOSCRIPT ") { return s.Eval(c, keys, args)