mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-26 02:11:53 +00:00
Apply suggestions from code review
Remove unused code Co-authored-by: Lucy C <12953208+elvece@users.noreply.github.com>
This commit is contained in:
@@ -112,11 +112,6 @@ getAppR file = do
|
|||||||
addHeader "Content-Length" (show len)
|
addHeader "Content-Length" (show len)
|
||||||
respondSource typeOctet $ src .| awaitForever sendChunkBS
|
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 :: PkgId -> Version -> Handler ()
|
||||||
recordMetrics pkg appVersion = do
|
recordMetrics pkg appVersion = do
|
||||||
|
|||||||
Reference in New Issue
Block a user