feat(users/Profpatsch/whatcd-resolver): add redacted torrent link
Change-Id: I9e2cd1935a67260cc7e4b72b247c01495e130949 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11744 Autosubmit: Profpatsch <mail@profpatsch.de> Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de>
This commit is contained in:
parent
94ea6fd69e
commit
8bb27c98b0
2 changed files with 9 additions and 7 deletions
|
|
@ -3,6 +3,7 @@
|
|||
module Redacted where
|
||||
|
||||
import AppT
|
||||
import Arg
|
||||
import Control.Monad.Logger.CallStack
|
||||
import Control.Monad.Reader
|
||||
import Data.Aeson qualified as Json
|
||||
|
|
@ -67,12 +68,8 @@ redactedGetTorrentFile dat = inSpan' "Redacted Get Torrent File" $ \span -> do
|
|||
)
|
||||
httpTorrent span req
|
||||
|
||||
-- fix
|
||||
-- ( \io -> do
|
||||
-- logInfo "delay"
|
||||
-- liftIO $ threadDelay 10_000_000
|
||||
-- io
|
||||
-- )
|
||||
mkRedactedTorrentLink :: Arg "torrentId" Int -> Text
|
||||
mkRedactedTorrentLink torrentId = [fmt|https://redacted.ch/torrents.php?id={torrentId.unArg}|]
|
||||
|
||||
exampleSearch :: (MonadThrow m, MonadLogger m, MonadPostgres m, MonadOtel m) => m (Transaction m ())
|
||||
exampleSearch = do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue