Server.BackendCon renamed Server.BackendConn

This commit is contained in:
Jimmy Zelinskie 2014-04-20 02:25:21 -04:00
parent e80b17b2ad
commit f0bed27b6d
2 changed files with 3 additions and 3 deletions

View file

@ -243,7 +243,7 @@ func (s Server) serveAnnounce(w http.ResponseWriter, r *http.Request) {
delta.Uploaded = uint64(float64(rawDeltaUp) * user.UpMultiplier * torrent.UpMultiplier) delta.Uploaded = uint64(float64(rawDeltaUp) * user.UpMultiplier * torrent.UpMultiplier)
delta.Downloaded = uint64(float64(rawDeltaDown) * user.DownMultiplier * torrent.DownMultiplier) 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) { func (s Server) validateAnnounceQuery(r *http.Request) (compact bool, numWant int, infohash, peerID, event, ip string, port, uploaded, downloaded, left uint64, err error) {

View file

@ -28,7 +28,7 @@ type Server struct {
conf *config.Config conf *config.Config
listener *stoppableListener.StoppableListener listener *stoppableListener.StoppableListener
trackerPool tracker.Pool trackerPool tracker.Pool
backendCon backend.Conn backendConn backend.Conn
startTime time.Time startTime time.Time
@ -55,7 +55,7 @@ func New(conf *config.Config) (*Server, error) {
s := &Server{ s := &Server{
conf: conf, conf: conf,
trackerPool: trackerPool, trackerPool: trackerPool,
backendCon: backendConn, backendConn: backendConn,
Server: http.Server{ Server: http.Server{
Addr: conf.Addr, Addr: conf.Addr,
ReadTimeout: conf.ReadTimeout.Duration, ReadTimeout: conf.ReadTimeout.Duration,