summaryrefslogtreecommitdiff
path: root/protocol.go
diff options
context:
space:
mode:
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 564df9b7..5523a3e5 100644
--- a/protocol.go
+++ b/protocol.go
@@ -15,7 +15,7 @@ type pidCommand struct {
Pid int `json:"pid"`
}
-func sendPayload(rl goridge.Relay, v interface{}) error {
+func sendControl(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 sendPayload(rl goridge.Relay, v interface{}) error {
}
func fetchPID(rl goridge.Relay) (pid int, err error) {
- if err := sendPayload(rl, pidCommand{Pid: os.Getpid()}); err != nil {
+ if err := sendControl(rl, pidCommand{Pid: os.Getpid()}); err != nil {
return 0, err
}