cmd/mtredisalize/leveldb.go

This commit is contained in:
Sascha L. Teichmann
2024-01-06 16:12:19 +01:00
parent 5442fab97d
commit 7f69467f26
7 changed files with 27 additions and 24 deletions

View File

@ -177,7 +177,7 @@ func (ps *players) initConnection(wsf *websocketForwarder, c *connection) {
wsf.singleSend(c, &plsMsg{Pls: ps.current()})
}
func (ps *players) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
func (ps *players) ServeHTTP(rw http.ResponseWriter, _ *http.Request) {
rw.Header().Set("Content-Type", "application/json")
pls := ps.current()
encoder := json.NewEncoder(rw)