summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-19 16:47:15 +0300
committerValery Piashchynski <[email protected]>2021-01-19 16:47:15 +0300
commit26f9d35e18ef79d79a5609c6c68f1b6ad38c7aed (patch)
treedd6224660ffd0dcefe2332807203ee1eaf6697b4 /internal
parent75ebbaac89ce8ebc3ab8de47b16e137844cfcd8a (diff)
Uniform all errors operations
Add new ExecTTL event Update tests Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'internal')
-rwxr-xr-xinternal/protocol.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/protocol.go b/internal/protocol.go
index a099ce4d..19678067 100755
--- a/internal/protocol.go
+++ b/internal/protocol.go
@@ -20,7 +20,7 @@ type pidCommand struct {
}
func SendControl(rl relay.Relay, payload interface{}) error {
- const op = errors.Op("send control frame")
+ const op = errors.Op("send_control")
fr := frame.NewFrame()
fr.WriteVersion(frame.VERSION_1)
fr.WriteFlags(frame.CONTROL)
@@ -60,7 +60,7 @@ func SendControl(rl relay.Relay, payload interface{}) error {
}
func FetchPID(rl relay.Relay) (int64, error) {
- const op = errors.Op("fetchPID")
+ const op = errors.Op("fetch_pid")
err := SendControl(rl, pidCommand{Pid: os.Getpid()})
if err != nil {
return 0, errors.E(op, err)