go code autoformat

This commit is contained in:
vadym 2022-12-13 23:05:19 +02:00
parent 316a202c8f
commit 2cc402237e
10 changed files with 8 additions and 15 deletions

View file

@ -5,7 +5,6 @@ import (
"net"
"sort"
"strings"
//"github.com/RiV-chain/RiV-mesh/src/address"
)

View file

@ -5,7 +5,6 @@ import (
"net"
"sort"
"strings"
//"github.com/RiV-chain/RiV-mesh/src/address"
)

View file

@ -4,7 +4,6 @@ import (
"encoding/hex"
"net"
"sort"
//"github.com/RiV-chain/RiV-mesh/src/address"
)

View file

@ -5,7 +5,6 @@ import (
"net"
"sort"
"strings"
//"github.com/RiV-chain/RiV-mesh/src/address"
)

View file

@ -186,7 +186,6 @@ func (l *linkTCP) dialerFor(dst *net.TCPAddr, sintf string) (*net.Dialer, error)
return dialer, nil
}
func tcpIDFor(local net.Addr, remoteAddr *net.TCPAddr) string {
if localAddr, ok := local.(*net.TCPAddr); ok && localAddr.IP.Equal(remoteAddr.IP) {
// Nodes running on the same host — include both the IP and port.

View file

@ -11,7 +11,6 @@ import (
iwt "github.com/Arceliar/ironwood/types"
"github.com/Arceliar/phony"
//"github.com/RiV-chain/RiV-mesh/src/address"
)

View file

@ -4,7 +4,6 @@
package multicast
import (
"syscall"

View file

@ -6,9 +6,9 @@ package tun
import (
"bytes"
"errors"
"time"
"log"
"net"
"time"
"github.com/RiV-chain/RiV-mesh/src/defaults"
"golang.org/x/sys/windows"
@ -43,7 +43,7 @@ func (tun *TunAdapter) setup(ifname string, addr string, mtu uint64) error {
if i > 8 {
return err
} else {
time.Sleep(time.Duration(2 * i) * time.Second)
time.Sleep(time.Duration(2*i) * time.Second)
}
} else {
break