This commit is contained in:
Oleglacto 2024-11-22 00:17:39 -05:00 committed by GitHub
commit 596c06ca98
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 PoolStats() *PoolStats
} }
func (c cmdable) Do(ctx context.Context, args ...interface{}) *Cmd {
cmd := NewCmd(ctx, args)
_ = c(ctx, cmd)
return cmd
}
var ( var (
_ UniversalClient = (*Client)(nil) _ UniversalClient = (*Client)(nil)
_ UniversalClient = (*ClusterClient)(nil) _ UniversalClient = (*ClusterClient)(nil)