This commit is contained in:
2022-11-05 23:16:20 +01:00
parent ea93d6de45
commit d01dff5774
2 changed files with 17 additions and 17 deletions

View File

@@ -21,11 +21,11 @@ func (pc *PluginClient) Do(ctx context.Context, commandName string, args map[str
CommandName: commandName,
Args: args,
}
doReq, err := json.Marshal(req)
if err != nil {
return err
}
err = pc.client.Call("Plugin.Do", doReq, new(any))
//doReq, err := json.Marshal(req)
//if err != nil {
// return err
//}
err := pc.client.Call("Plugin.Do", req, new(any))
if err != nil {
return err
}