Use default codec

This commit is contained in:
Elara 2022-05-01 11:41:16 -07:00
parent 56dbf0540e
commit 428e7967c1
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ func New(sockPath string) (*Client, error) {
}
out := &Client{
client: client.New(conn, codec.JSON),
client: client.New(conn, codec.Default),
}
return out, nil
}

View File

@ -112,7 +112,7 @@ func startSocket(dev *infinitime.Device) error {
return err
}
go srv.Serve(ln, codec.JSON)
go srv.Serve(ln, codec.Default)
// Log socket start
log.Info().Str("path", k.String("socket.path")).Msg("Started control socket")