commit c4465ab2e813e4082db0ad45ae4c6032580d136e
parent 17f08a4799c46418f2bfab4f8ae08397baca6eb8
Author: Peter Kosyh <p.kosyh@gmail.com>
Date: Tue, 8 Sep 2020 15:35:34 +0100
fetcher: skip wrong lines
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/ii/net.go b/ii/net.go
@@ -221,6 +221,12 @@ func (n *Node) Fetch(db *DB, Echolist []string, limit int) error {
num := 0
Info.Printf("Start fetcher(s) for %s", n.Host)
for _, v := range Echolist {
+ if !IsEcho(v) {
+ if strings.Trim(v, " ") != "" {
+ Trace.Printf("Skip echo: %s", v)
+ }
+ continue
+ }
wait.Add(1)
num += 1
if num >= MaxConnections { /* add per one */