Skip to content
This repository was archived by the owner on Jan 21, 2022. It is now read-only.

Commit 1f654b5

Browse files
committed
v.0.11.0 upgrade dependencies
1 parent 25b3e8a commit 1f654b5

File tree

4 files changed

+25
-19
lines changed

4 files changed

+25
-19
lines changed

cmd/magneticod/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func main() {
5656
return
5757
}
5858

59-
zap.L().Info("magneticod v0.10.0 has been started.")
59+
zap.L().Info("magneticod v0.11.0 has been started.")
6060
zap.L().Info("Copyright (C) 2017-2020 Mert Bora ALPER <bora@boramalper.org>.")
6161
zap.L().Info("Dedicated to Cemile Binay, in whose hands I thrived.")
6262
zap.S().Infof("Compiled on %s", compiledOn)

cmd/magneticow/api.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ import (
1313
"strings"
1414
"time"
1515

16-
"golang.org/x/text/encoding/charmap"
1716
"github.com/anacrolix/torrent"
1817
"github.com/anacrolix/torrent/storage"
1918
"github.com/gorilla/mux"
2019
"go.uber.org/zap"
20+
"golang.org/x/text/encoding/charmap"
2121

2222
"github.com/boramalper/magnetico/pkg/persistence"
2323
)
2424

2525
type ApiReadmeHandler struct {
26-
client *torrent.Client
26+
client *torrent.Client
2727
tempdir string
2828
}
2929

@@ -97,9 +97,9 @@ func (h *ApiReadmeHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
9797
zap.L().Warn("WAITING FOR INFO")
9898

9999
select {
100-
case <- t.GotInfo():
100+
case <-t.GotInfo():
101101

102-
case <- time.After(30 * time.Second):
102+
case <-time.After(30 * time.Second):
103103
respondError(w, http.StatusInternalServerError, "Timeout")
104104
return
105105
}
@@ -124,7 +124,7 @@ func (h *ApiReadmeHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
124124
}
125125

126126
// Cancel if the file is larger than 50 KiB
127-
if file.Length() > 50 * 1024 {
127+
if file.Length() > 50*1024 {
128128
w.WriteHeader(http.StatusRequestEntityTooLarge)
129129
return
130130
}

cmd/magneticow/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func main() {
6161
defer logger.Sync()
6262
zap.ReplaceGlobals(logger)
6363

64-
zap.L().Info("magneticow v0.10.0 has been started.")
64+
zap.L().Info("magneticow v0.11.0 has been started.")
6565
zap.L().Info("Copyright (C) 2017-2020 Mert Bora ALPER <bora@boramalper.org>.")
6666
zap.L().Info("Dedicated to Cemile Binay, in whose hands I thrived.")
6767
zap.S().Infof("Compiled on %s", compiledOn)

go.mod

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,33 @@ module github.com/boramalper/magnetico
22

33
require (
44
github.com/Wessie/appdirs v0.0.0-20141031215813-6573e894f8e2
5-
github.com/anacrolix/missinggo v1.1.0
6-
github.com/anacrolix/torrent v1.1.4
5+
github.com/anacrolix/dht v1.0.1 // indirect
6+
github.com/anacrolix/missinggo v1.2.1
7+
github.com/anacrolix/missinggo/v2 v2.4.0 // indirect
8+
github.com/anacrolix/torrent v1.14.0
79
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e // indirect
810
github.com/dustin/go-humanize v1.0.0
911
github.com/google/pprof v0.0.0-20190515194954-54271f7e092f // indirect
10-
github.com/gorilla/mux v1.7.2
12+
github.com/gorilla/mux v1.7.4
1113
github.com/gorilla/schema v1.1.0
1214
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6 // indirect
1315
github.com/jessevdk/go-flags v1.4.0
1416
github.com/kevinburke/go-bindata v3.16.0+incompatible // indirect
1517
github.com/libp2p/go-sockaddr v0.0.1
16-
github.com/mattn/go-sqlite3 v1.10.0
17-
github.com/pkg/errors v0.8.1
18-
github.com/pkg/profile v1.3.0
18+
github.com/mattn/go-sqlite3 v2.0.3+incompatible
19+
github.com/pkg/errors v0.9.1
20+
github.com/pkg/profile v1.4.0
1921
github.com/willf/bloom v2.0.3+incompatible
20-
go.uber.org/atomic v1.4.0 // indirect
21-
go.uber.org/multierr v1.1.0 // indirect
22-
go.uber.org/zap v1.10.0
23-
golang.org/x/crypto v0.0.0-20190513172903-22d7a77e9e5f
24-
golang.org/x/sys v0.0.0-20190516110030-61b9204099cb
25-
golang.org/x/text v0.3.0
22+
go.uber.org/atomic v1.5.1 // indirect
23+
go.uber.org/multierr v1.4.0 // indirect
24+
go.uber.org/zap v1.14.0
25+
golang.org/x/crypto v0.0.0-20200221231518-2aa609cf4a9d
26+
golang.org/x/lint v0.0.0-20200130185559-910be7a94367 // indirect
27+
golang.org/x/net v0.0.0-20200222125558-5a598a2470a0 // indirect
28+
golang.org/x/sys v0.0.0-20200219091948-cb0a6d8edb6c
29+
golang.org/x/text v0.3.2
30+
golang.org/x/tools v0.0.0-20200221224223-e1da425f72fd // indirect
31+
honnef.co/go/tools v0.0.1-2020.1.3 // indirect
2632
)
2733

2834
go 1.13

0 commit comments

Comments
 (0)