1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-24 08:02:33 +03:00

don't broadcast channel

This commit is contained in:
Zack Scholl 2018-07-01 20:46:25 -07:00
parent 0ec32e3f9a
commit a1611ccc88

View File

@ -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)