From a1611ccc88e3e20ef66c98a84ea99a9bcc86a45e Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Sun, 1 Jul 2018 20:46:25 -0700 Subject: [PATCH] don't broadcast channel --- src/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api.go b/src/api.go index 8aab2bfd..01b9b911 100644 --- a/src/api.go +++ b/src/api.go @@ -56,7 +56,7 @@ func (c *Croc) Send(fname string, codePhrase string) (err error) { Limit: 1, TimeLimit: 600 * time.Second, Delay: 50 * time.Millisecond, - Payload: []byte(codePhrase), + Payload: []byte(codePhrase[:3]), }) }() @@ -138,7 +138,7 @@ func (c *Croc) Receive(codePhrase string) (err error) { Limit: 1, TimeLimit: 1 * time.Second, Delay: 50 * time.Millisecond, - Payload: []byte(codePhrase), + Payload: []byte(codePhrase[:3]), }) if errDiscover != nil { log.Debug(errDiscover)