good morning!!!!

Skip to content
Commits on Source (1)
......@@ -5,7 +5,7 @@ import "context"
var _ Conn = (*Client)(nil)
type Conn interface {
Call(ctx context.Context, result any, method string, params ...any) error
Do(ctx context.Context, result any, method string, params any) error
BatchCall(ctx context.Context, b ...BatchElem) error
SetHeader(key, value string)
Close() error
......
......@@ -4,7 +4,7 @@ import "context"
func Do[T any](ctx context.Context, c Conn, method string, args any) (*T, error) {
var t T
err := c.Call(ctx, &t, method, args)
err := c.Do(ctx, &t, method, args)
if err != nil {
return nil, err
}
......@@ -13,7 +13,7 @@ func Do[T any](ctx context.Context, c Conn, method string, args any) (*T, error)
func Call[T any](ctx context.Context, c Conn, method string, args ...any) (*T, error) {
var t T
err := c.Call(ctx, &t, method, args)
err := c.Do(ctx, &t, method, args)
if err != nil {
return nil, err
}
......