mirror of
https://github.com/quexten/goldwarden.git
synced 2024-09-11 19:17:33 +03:00
Remove commented out code
This commit is contained in:
parent
8d257c265e
commit
2e42a798e3
@ -69,17 +69,12 @@ func (conn UnixSocketConnection) SendCommand(request interface{}) (interface{},
|
||||
|
||||
func (conn UnixSocketConnection) ReadMessage() interface{} {
|
||||
result := Reader(conn.conn)
|
||||
// fmt.Println("ReadMessag")
|
||||
// fmt.Println(result)
|
||||
payload := messages.ParsePayload(result.(messages.IPCMessage))
|
||||
// fmt.Println(payload)
|
||||
return payload
|
||||
}
|
||||
|
||||
func (conn UnixSocketConnection) WriteMessage(message interface{}) error {
|
||||
// fmt.Println("WriteMessage")
|
||||
messagePacket, err := messages.IPCMessageFromPayload(message)
|
||||
// fmt.Println(messagePacket)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
@ -87,7 +82,6 @@ func (conn UnixSocketConnection) WriteMessage(message interface{}) error {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
// fmt.Println(messageJson)
|
||||
_, err = conn.conn.Write(messageJson)
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user