From 3bfa039c6638553d637be9807ba656831cb73840 Mon Sep 17 00:00:00 2001 From: sacha-froment-ext Date: Fri, 2 Oct 2020 09:36:32 +0200 Subject: [PATCH] review 3 Signed-off-by: sacha-froment-ext --- contrib/go-redis/redis.v8/redis.go | 2 -- contrib/go-redis/redis.v8/redis_test.go | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/go-redis/redis.v8/redis.go b/contrib/go-redis/redis.v8/redis.go index ae836c0eae..18722fdde3 100644 --- a/contrib/go-redis/redis.v8/redis.go +++ b/contrib/go-redis/redis.v8/redis.go @@ -27,8 +27,6 @@ type datadogHook struct { *params } -var _ redis.Hook = (*datadogHook)(nil) - // params holds the tracer and a set of parameters which are recorded with every trace. type params struct { host string diff --git a/contrib/go-redis/redis.v8/redis_test.go b/contrib/go-redis/redis.v8/redis_test.go index de45660bfc..b40b306cb5 100644 --- a/contrib/go-redis/redis.v8/redis_test.go +++ b/contrib/go-redis/redis.v8/redis_test.go @@ -23,6 +23,9 @@ import ( const debug = false +// ensure it's a redis.Hook +var _ redis.Hook = (*datadogHook)(nil) + func TestMain(m *testing.M) { _, ok := os.LookupEnv("INTEGRATION") if !ok {