This commit is contained in:
Oleglacto 2024-11-13 06:32:56 -08:00 committed by GitHub
commit 9cb972409f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -228,6 +228,12 @@ type UniversalClient interface {
PoolStats() *PoolStats
}
func (c cmdable) Do(ctx context.Context, args ...interface{}) *Cmd {
cmd := NewCmd(ctx, args)
_ = c(ctx, cmd)
return cmd
}
var (
_ UniversalClient = (*Client)(nil)
_ UniversalClient = (*ClusterClient)(nil)