summaryrefslogtreecommitdiff
path: root/protocol.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-01-28 19:03:27 +0300
committerWolfy-J <[email protected]>2018-01-28 19:03:27 +0300
commitf606426f00e9ad59f078474d4005ec55d1f3d3a9 (patch)
tree646eb86088b210dd952b8e6b932abd8b91dedcf2 /protocol.go
parent76d72becd1226d8d79ca592c89693a629dc54dec (diff)
CS
Diffstat (limited to 'protocol.go')
-rw-r--r--protocol.go4
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
}