···141141 return tokenString, nil
142142}
143143144144-func (c *XrpcClient) Do(ctx context.Context, authedArgs *XrpcAuthedRequestArgs, kind xrpc.XRPCRequestType, inpenc, method string, params map[string]any, bodyobj any, out any) error {
144144+func (c *XrpcClient) Do(ctx context.Context, authedArgs *XrpcAuthedRequestArgs, kind string, inpenc, method string, params map[string]any, bodyobj any, out any) error {
145145 // we might have to retry the request if we get a new nonce from the server
146146 for range 2 {
147147 var body io.Reader
···165165 case xrpc.Procedure:
166166 m = "POST"
167167 default:
168168- return fmt.Errorf("unsupported request kind: %d", kind)
168168+ return fmt.Errorf("unsupported request kind: %s", kind)
169169 }
170170171171 var paramStr string