with normal string gob
This commit is contained in:
parent
60623df003
commit
e34aa4134e
@ -66,6 +66,5 @@ func (cc *CharContext) About(ctx context.Context) ([]register.AboutItem, error)
|
||||
}
|
||||
|
||||
func (cc *CharContext) Do(ctx context.Context, clientName string, commandName string, args map[string]string) error {
|
||||
cc.pluginRegister.Do(ctx, clientName, commandName, args)
|
||||
return nil
|
||||
return cc.pluginRegister.Do(ctx, clientName, commandName, args)
|
||||
}
|
||||
|
@ -237,5 +237,9 @@ func (pr *PluginRegister) Do(ctx context.Context, clientName string, commandName
|
||||
return client.plugin.Do(ctx, commandName, args)
|
||||
})
|
||||
|
||||
if err := errgroup.Wait(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
@ -9,9 +9,9 @@ type PluginServer struct {
|
||||
Impl Plugin
|
||||
}
|
||||
|
||||
func (ps *PluginServer) Do(args *string, resp *string) error {
|
||||
func (ps *PluginServer) Do(args string, resp *string) error {
|
||||
var doReq DoRequest
|
||||
if err := json.Unmarshal([]byte(*args), &doReq); err != nil {
|
||||
if err := json.Unmarshal([]byte(args), &doReq); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user