From 3f43c7448baedb238ad5304a303d1c431a13e224 Mon Sep 17 00:00:00 2001 From: Felipe Cavalcanti Date: Tue, 2 May 2017 12:41:42 -0300 Subject: [PATCH] add runtime type assertion --- pipeline.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pipeline.go b/pipeline.go index f1caf152..977f5eb3 100644 --- a/pipeline.go +++ b/pipeline.go @@ -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.