Skip to content

Commit

Permalink
Merge pull request #1336 from CortexFoundation/dev
Browse files Browse the repository at this point in the history
Tiny fix
  • Loading branch information
ucwong authored Oct 21, 2022
2 parents 7819a2f + acc4eaa commit 3335ad6
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 17 deletions.
4 changes: 1 addition & 3 deletions cmd/bootnode/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ func main() {
netrestrict = flag.String("netrestrict", "", "restrict network communication to the given IP networks (CIDR masks)")
runv5 = flag.Bool("v5", false, "run a v5 topic discovery bootnode")
verbosity = flag.Int("verbosity", int(log.LvlInfo), "log verbosity (0-9)")
vmodule = flag.String("vmodule", "", "log verbosity pattern")

nodeKey *ecdsa.PrivateKey
err error
Expand All @@ -58,7 +57,6 @@ func main() {

glogger := log.NewGlogHandler(log.StreamHandler(os.Stderr, log.TerminalFormat(false)))
glogger.Verbosity(log.Lvl(*verbosity))
glogger.Vmodule(*vmodule)
log.Root().SetHandler(glogger)

natm, err := nat.Parse(*natdesc)
Expand Down Expand Up @@ -116,7 +114,7 @@ func main() {
realaddr := conn.LocalAddr().(*net.UDPAddr)
if natm != nil {
if !realaddr.IP.IsLoopback() {
go nat.Map(natm, nil, "udp", realaddr.Port, realaddr.Port, "CortexFoundation discovery")
go nat.Map(natm, nil, "udp", realaddr.Port, realaddr.Port, "Cortex discovery")
}
if ext, err := natm.ExternalIP(); err == nil {
realaddr = &net.UDPAddr{IP: ext, Port: realaddr.Port}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.4.1
github.com/CortexFoundation/inference v1.0.2-0.20220421072809-9c87efb8a557
github.com/CortexFoundation/statik v0.0.0-20210315012922-8bb8a7b5dc66
github.com/CortexFoundation/torrentfs v1.0.33-0.20221020175559-927dc9538190
github.com/CortexFoundation/torrentfs v1.0.33-0.20221021070845-0196b03bf907
github.com/VictoriaMetrics/fastcache v1.12.0
github.com/arsham/figurine v1.2.0
github.com/aws/aws-sdk-go-v2 v1.16.16
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ github.com/CortexFoundation/statik v0.0.0-20210315012922-8bb8a7b5dc66/go.mod h1:
github.com/CortexFoundation/torrentfs v1.0.13-0.20200623060705-ce027f43f2f8/go.mod h1:Ma+tGhPPvz4CEZHaqEJQMOEGOfHeQBiAoNd1zyc/w3Q=
github.com/CortexFoundation/torrentfs v1.0.14-0.20200703071639-3fcabcabf274/go.mod h1:qnb3YlIJmuetVBtC6Lsejr0Xru+1DNmDCdTqnwy7lhk=
github.com/CortexFoundation/torrentfs v1.0.20-0.20200810031954-d36d26f82fcc/go.mod h1:N5BsicP5ynjXIi/Npl/SRzlJ630n1PJV2sRj0Z0t2HA=
github.com/CortexFoundation/torrentfs v1.0.33-0.20221020175559-927dc9538190 h1:jx9TRIG60umYuM55D4dOa2KinqigL0NRcPaiWqrQkdo=
github.com/CortexFoundation/torrentfs v1.0.33-0.20221020175559-927dc9538190/go.mod h1:NPdS3bCOzmMYsrJqB+ib4PYzCvEmJiDJ7KiiIffLbSg=
github.com/CortexFoundation/torrentfs v1.0.33-0.20221021070845-0196b03bf907 h1:H/AtXPQ1ulsVeFi74MzewUlmZl3OIMlB60TOck3I6wk=
github.com/CortexFoundation/torrentfs v1.0.33-0.20221021070845-0196b03bf907/go.mod h1:NPdS3bCOzmMYsrJqB+ib4PYzCvEmJiDJ7KiiIffLbSg=
github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM=
github.com/DATA-DOG/go-sqlmock v1.4.1 h1:ThlnYciV1iM/V0OSF/dtkqWb6xo5qITT1TJBG1MRDJM=
github.com/HdrHistogram/hdrhistogram-go v1.1.0 h1:6dpdDPTRoo78HxAJ6T1HfMiKSnqhgRRqzCuPshRkQ7I=
Expand Down
2 changes: 1 addition & 1 deletion vendor/github.com/CortexFoundation/torrentfs/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 2 additions & 7 deletions vendor/github.com/CortexFoundation/torrentfs/fs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions vendor/github.com/CortexFoundation/torrentfs/peer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ github.com/CortexFoundation/merkletree
# github.com/CortexFoundation/statik v0.0.0-20210315012922-8bb8a7b5dc66
## explicit; go 1.16
github.com/CortexFoundation/statik
# github.com/CortexFoundation/torrentfs v1.0.33-0.20221020175559-927dc9538190
# github.com/CortexFoundation/torrentfs v1.0.33-0.20221021070845-0196b03bf907
## explicit; go 1.19
github.com/CortexFoundation/torrentfs
github.com/CortexFoundation/torrentfs/compress
Expand Down

0 comments on commit 3335ad6

Please sign in to comment.