mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-20 15:08:13 -07:00
rename back to chihaya
This commit is contained in:
@@ -13,9 +13,9 @@ import (
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"golang.org/x/net/context"
|
||||
|
||||
"github.com/jzelinskie/trakr/bittorrent"
|
||||
"github.com/jzelinskie/trakr/frontend"
|
||||
"github.com/jzelinskie/trakr/frontend/udp/bytepool"
|
||||
"github.com/chihaya/chihaya/bittorrent"
|
||||
"github.com/chihaya/chihaya/frontend"
|
||||
"github.com/chihaya/chihaya/frontend/udp/bytepool"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -25,7 +25,7 @@ func init() {
|
||||
|
||||
var promResponseDurationMilliseconds = prometheus.NewHistogramVec(
|
||||
prometheus.HistogramOpts{
|
||||
Name: "trakr_udp_response_duration_milliseconds",
|
||||
Name: "chihaya_udp_response_duration_milliseconds",
|
||||
Help: "The duration of time it takes to receive and write a response to an API request",
|
||||
Buckets: prometheus.ExponentialBuckets(9.375, 2, 10),
|
||||
},
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"encoding/binary"
|
||||
"net"
|
||||
|
||||
"github.com/jzelinskie/trakr/bittorrent"
|
||||
"github.com/chihaya/chihaya/bittorrent"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -125,7 +125,7 @@ func handleOptionalParameters(packet []byte) (params bittorrent.Params, err erro
|
||||
return params, errMalformedPacket
|
||||
}
|
||||
|
||||
// TODO(jzelinskie): Actually parse the URL Data as described in BEP 41
|
||||
// TODO(chihaya): Actually parse the URL Data as described in BEP 41
|
||||
// into something that fulfills the bittorrent.Params interface.
|
||||
|
||||
optionStartIndex += 1 + length
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"io"
|
||||
"time"
|
||||
|
||||
"github.com/jzelinskie/trakr/bittorrent"
|
||||
"github.com/chihaya/chihaya/bittorrent"
|
||||
)
|
||||
|
||||
// WriteError writes the failure reason as a null-terminated string.
|
||||
|
||||
Reference in New Issue
Block a user