Skip to content

Commit

Permalink
cleanup - remove demoupload service
Browse files Browse the repository at this point in the history
  • Loading branch information
sparkoo committed Aug 25, 2024
1 parent 588a593 commit d1eb10d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 47 deletions.
11 changes: 0 additions & 11 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"compress/gzip"
"csgo-2d-demo-player/conf"
"csgo-2d-demo-player/pkg/auth"
"csgo-2d-demo-player/pkg/demoupload"
"csgo-2d-demo-player/pkg/list"
"csgo-2d-demo-player/pkg/log"
"csgo-2d-demo-player/pkg/message"
Expand All @@ -29,7 +28,6 @@ var config *conf.Conf
var faceitClient *faceit.FaceitClient
var steamClient *steam.SteamProvider
var uploadClient *upload.UploadProvider
var uploadQue map[string]chan io.ReadCloser

func main() {
config = &conf.Conf{}
Expand All @@ -38,8 +36,6 @@ func main() {
log.Init(config.Mode)
defer log.Close()

uploadQue = make(map[string]chan io.ReadCloser)

log.L().Debug("using config", zap.Any("config", config))
faceitClient = faceit.NewFaceitClient(config)
steamClient = steam.NewSteamClient(config)
Expand Down Expand Up @@ -69,13 +65,6 @@ func server() {
mux.Handle("/", http.FileServer(http.Dir("web/index/build")))
mux.Handle("/player/", http.StripPrefix("/player", http.FileServer(http.Dir("web/player/build"))))

demoUploadSvc := demoupload.DemoUploadSvc{
Conf: config,
UpQue: uploadQue,
}

mux.HandleFunc("/demo/upload", demoUploadSvc.HandleUpload)

listService := list.ListService{
Conf: config,
FaceitClient: faceitClient,
Expand Down
36 changes: 0 additions & 36 deletions pkg/demoupload/demoupload.go

This file was deleted.

0 comments on commit d1eb10d

Please sign in to comment.