summaryrefslogtreecommitdiff
path: root/protocol.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-05-02 18:35:18 +0300
committerWolfy-J <[email protected]>2019-05-02 18:35:18 +0300
commitb3e7bbccdd7636b6ce7d90cf4f295e498feb719c (patch)
tree4db686c678bf7e4ee4e69e4443f34c46d7f26bea /protocol.go
parenteb8c64941cbcd30ff79b6147efd5fef42eccb648 (diff)
miiiinor performance optimizations
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
}