diff options
author | Wolfy-J <[email protected]> | 2018-01-28 19:03:27 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-01-28 19:03:27 +0300 |
commit | f606426f00e9ad59f078474d4005ec55d1f3d3a9 (patch) | |
tree | 646eb86088b210dd952b8e6b932abd8b91dedcf2 /protocol.go | |
parent | 76d72becd1226d8d79ca592c89693a629dc54dec (diff) |
CS
Diffstat (limited to 'protocol.go')
-rw-r--r-- | protocol.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocol.go b/protocol.go index 97d40c0c..564df9b7 100644 --- a/protocol.go +++ b/protocol.go @@ -15,7 +15,7 @@ type pidCommand struct { Pid int `json:"pid"` } -func sendHead(rl goridge.Relay, v interface{}) error { +func sendPayload(rl goridge.Relay, v interface{}) error { if data, ok := v.([]byte); ok { return rl.Send(data, goridge.PayloadControl|goridge.PayloadRaw) } @@ -29,7 +29,7 @@ func sendHead(rl goridge.Relay, v interface{}) error { } func fetchPID(rl goridge.Relay) (pid int, err error) { - if err := sendHead(rl, pidCommand{Pid: os.Getpid()}); err != nil { + if err := sendPayload(rl, pidCommand{Pid: os.Getpid()}); err != nil { return 0, err } |