From 2b2f1648c1bf6437fe743eef1a91683a2f6b5cc4 Mon Sep 17 00:00:00 2001 From: Milarin Date: Fri, 9 Feb 2024 22:16:08 +0100 Subject: [PATCH] fixed dispatch method --- dispatch.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dispatch.go b/dispatch.go index 44d3f84..cf1dc72 100644 --- a/dispatch.go +++ b/dispatch.go @@ -7,11 +7,11 @@ import ( ) func (i *Instance) Dispatch(cmd string) (io.ReadCloser, error) { - return readSocketRaw(i.SocketPath(), strings.NewReader(cmd)) + return readSocketRaw(i.SocketPath(), strings.NewReader(fmt.Sprintf("dispatch %s", cmd))) } func (i *Instance) DispatchExpectOK(cmd string) error { - str, err := readSocketString(i.SocketPath(), strings.NewReader(cmd)) + str, err := readSocketString(i.SocketPath(), strings.NewReader(fmt.Sprintf("dispatch %s", cmd))) if err != nil { return err }