OSDN Git Service
(root)
/
bytom
/
bytom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f3ce5e
)
Reduce get external IP waiting time
author
Yahtoo Ma
<yahtoo.ma@gmail.com>
Thu, 10 May 2018 01:40:11 +0000
(09:40 +0800)
committer
Yahtoo Ma
<yahtoo.ma@gmail.com>
Thu, 10 May 2018 01:40:11 +0000
(09:40 +0800)
p2p/public_ip.go
patch
|
blob
|
history
diff --git
a/p2p/public_ip.go
b/p2p/public_ip.go
index
81fc76d
..
b8b9603
100644
(file)
--- a/
p2p/public_ip.go
+++ b/
p2p/public_ip.go
@@
-25,7
+25,7
@@
type IpResult struct {
Ip string
}
-var timeout = time.Duration(
10
)
+var timeout = time.Duration(
5
)
func GetIP() *IpResult {
resultCh := make(chan *IpResult, 1)