server: propagate context to storage layer (#455)

This change propagates the context of the actual user request through.
Additionally it configures the Storj Backend to do in memory buffering instead of relying on temporary files in /tmp/ folders.
Fixes #448
This commit is contained in:
Stefan Benten
2021-12-26 17:17:28 +01:00
committed by GitHub
parent f062af9fc5
commit 492731e31f
3 changed files with 86 additions and 97 deletions

View File

@ -426,11 +426,11 @@ func (s *Server) Run() {
_, err = htmlTemplates.New(stripPrefix(path)).Parse(string(bytes))
if err != nil {
s.logger.Panicln("Unable to parse template")
s.logger.Println("Unable to parse html template", err)
}
_, err = textTemplates.New(stripPrefix(path)).Parse(string(bytes))
if err != nil {
s.logger.Panicln("Unable to parse template")
s.logger.Println("Unable to parse text template", err)
}
}
}