mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 21:30:16 +02:00
discover faster
This commit is contained in:
parent
80c129b411
commit
8373e374cd
1 changed files with 2 additions and 2 deletions
|
@ -137,9 +137,9 @@ func (c *Croc) Receive(codePhrase string) (err error) {
|
|||
// try to discovery codephrase and server through peer network
|
||||
discovered, errDiscover := peerdiscovery.Discover(peerdiscovery.Settings{
|
||||
Limit: 1,
|
||||
TimeLimit: 1 * time.Second,
|
||||
TimeLimit: 300 * time.Millisecond,
|
||||
Delay: 50 * time.Millisecond,
|
||||
Payload: []byte(codePhrase[:3]),
|
||||
Payload: []byte("checking"),
|
||||
})
|
||||
if errDiscover != nil {
|
||||
log.Debug(errDiscover)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue