add runtime type assertion

This commit is contained in:
Felipe Cavalcanti 2017-05-02 12:41:42 -03:00
parent eeb4d09198
commit 3f43c7448b
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ type Pipeliner interface {
pipelined(fn func(Pipeliner) error) ([]Cmder, error)
}
var _ Pipeliner = (*Pipeline)(nil)
// Pipeline implements pipelining as described in
// http://redis.io/topics/pipelining. It's safe for concurrent use
// by multiple goroutines.