forked from Elara6331/itd
Use default codec
This commit is contained in:
parent
a1ee021675
commit
fe00e8bb65
@ -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