Server.BackendCon renamed Server.BackendConn
This commit is contained in:
parent
e80b17b2ad
commit
f0bed27b6d
2 changed files with 3 additions and 3 deletions
|
@ -243,7 +243,7 @@ func (s Server) serveAnnounce(w http.ResponseWriter, r *http.Request) {
|
|||
delta.Uploaded = uint64(float64(rawDeltaUp) * user.UpMultiplier * torrent.UpMultiplier)
|
||||
delta.Downloaded = uint64(float64(rawDeltaDown) * user.DownMultiplier * torrent.DownMultiplier)
|
||||
|
||||
s.backendCon.RecordAnnounce(delta)
|
||||
s.backendConn.RecordAnnounce(delta)
|
||||
}
|
||||
|
||||
func (s Server) validateAnnounceQuery(r *http.Request) (compact bool, numWant int, infohash, peerID, event, ip string, port, uploaded, downloaded, left uint64, err error) {
|
||||
|
|
|
@ -28,7 +28,7 @@ type Server struct {
|
|||
conf *config.Config
|
||||
listener *stoppableListener.StoppableListener
|
||||
trackerPool tracker.Pool
|
||||
backendCon backend.Conn
|
||||
backendConn backend.Conn
|
||||
|
||||
startTime time.Time
|
||||
|
||||
|
@ -55,7 +55,7 @@ func New(conf *config.Config) (*Server, error) {
|
|||
s := &Server{
|
||||
conf: conf,
|
||||
trackerPool: trackerPool,
|
||||
backendCon: backendConn,
|
||||
backendConn: backendConn,
|
||||
Server: http.Server{
|
||||
Addr: conf.Addr,
|
||||
ReadTimeout: conf.ReadTimeout.Duration,
|
||||
|
|
Loading…
Reference in a new issue