mirror of
https://github.com/schollz/croc.git
synced 2024-11-28 01:16:10 +03:00
don't broadcast channel
This commit is contained in:
parent
0ec32e3f9a
commit
a1611ccc88
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user