Use default codec
This commit is contained in:
parent
56dbf0540e
commit
428e7967c1
@ -20,7 +20,7 @@ func New(sockPath string) (*Client, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
out := &Client{
|
out := &Client{
|
||||||
client: client.New(conn, codec.JSON),
|
client: client.New(conn, codec.Default),
|
||||||
}
|
}
|
||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
@ -112,7 +112,7 @@ func startSocket(dev *infinitime.Device) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
go srv.Serve(ln, codec.JSON)
|
go srv.Serve(ln, codec.Default)
|
||||||
|
|
||||||
// Log socket start
|
// Log socket start
|
||||||
log.Info().Str("path", k.String("socket.path")).Msg("Started control socket")
|
log.Info().Str("path", k.String("socket.path")).Msg("Started control socket")
|
||||||
|
Loading…
Reference in New Issue
Block a user