Apply suggestions from code review

Remove unused code

Co-authored-by: Lucy C <12953208+elvece@users.noreply.github.com>
This commit is contained in:
Keagan McClelland
2021-09-29 13:30:27 -06:00
committed by GitHub
parent b949eafbfa
commit 93f8c7be24

View File

@@ -112,11 +112,6 @@ getAppR file = do
addHeader "Content-Length" (show len)
respondSource typeOctet $ src .| awaitForever sendChunkBS
chunkIt :: FilePath -> Handler TypedContent
chunkIt fp = do
sz <- liftIO $ fileSize <$> getFileStatus fp
addHeader "Content-Length" (show sz)
respondSource typeOctet $ CB.sourceFile fp .| awaitForever sendChunkBS
recordMetrics :: PkgId -> Version -> Handler ()
recordMetrics pkg appVersion = do