Rename to MoChi

This commit is contained in:
Lawrence, Rendall
2021-12-21 15:07:11 +03:00
parent 5a1ac73a3d
commit 4dbbb4ad83
72 changed files with 185 additions and 726 deletions
+4 -4
View File
@@ -12,10 +12,10 @@ import (
"github.com/julienschmidt/httprouter"
"github.com/chihaya/chihaya/bittorrent"
"github.com/chihaya/chihaya/frontend"
"github.com/chihaya/chihaya/pkg/log"
"github.com/chihaya/chihaya/pkg/stop"
"github.com/sot-tech/mochi/bittorrent"
"github.com/sot-tech/mochi/frontend"
"github.com/sot-tech/mochi/pkg/log"
"github.com/sot-tech/mochi/pkg/stop"
)
// Config represents all of the configurable options for an HTTP BitTorrent
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"net"
"net/http"
"github.com/chihaya/chihaya/bittorrent"
"github.com/sot-tech/mochi/bittorrent"
)
// ParseOptions is the configuration used to parse an Announce Request.
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/chihaya/chihaya/bittorrent"
"github.com/sot-tech/mochi/bittorrent"
)
func init() {
+2 -2
View File
@@ -2,8 +2,8 @@ package http
import (
"github.com/anacrolix/torrent/bencode"
"github.com/chihaya/chihaya/bittorrent"
"github.com/chihaya/chihaya/pkg/log"
"github.com/sot-tech/mochi/bittorrent"
"github.com/sot-tech/mochi/pkg/log"
"net/http"
"time"
)
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/chihaya/chihaya/bittorrent"
"github.com/sot-tech/mochi/bittorrent"
)
func TestWriteError(t *testing.T) {