Skip to content

Commit

Permalink
update(): change ring client hook
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesSunXX committed Aug 4, 2023
1 parent a25cd06 commit 68053ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/go-redisv9/intercepter.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (g *GoRedisInterceptor) AfterInvoke(invocation operator.Invocation, result
})
case *redis.Ring:
c.OnNewNode(func(rdb *redis.Client) {
rdb.AddHook(newRedisHook(rdb.Options().Addr))
rdb.AddHook(newRedisHook(rdb.String()))
})
default:
return fmt.Errorf("go-redis :skyWalking cannot create hook for the unsupported client type: %T", c)
Expand Down

0 comments on commit 68053ee

Please sign in to comment.