Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

galley: Remove unused IntraComponent Gundeck #4381

Merged
merged 4 commits into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions services/galley/src/Galley/Intra/Util.hs
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,13 @@ import Galley.Env hiding (brig)
import Galley.Monad
import Galley.Options
import Imports hiding (log)
import Network.HTTP.Types

data IntraComponent = Brig | Spar | Gundeck
data IntraComponent = Brig | Spar
deriving (Show)

componentName :: IntraComponent -> String
componentName Brig = "brig"
componentName Spar = "spar"
componentName Gundeck = "gundeck"

componentRequest :: IntraComponent -> Opts -> Request -> Request
componentRequest Brig o =
Expand All @@ -53,17 +51,10 @@ componentRequest Brig o =
componentRequest Spar o =
B.host (encodeUtf8 o._spar.host)
. B.port (portNumber $ fromIntegral . port $ o._spar)
componentRequest Gundeck o =
B.host (encodeUtf8 o._gundeck.host)
. B.port (portNumber $ fromIntegral . port $ o._gundeck)
. method POST
. path "/i/push/v2"
. expect2xx

componentRetryPolicy :: IntraComponent -> RetryPolicy
componentRetryPolicy Brig = x1
componentRetryPolicy Spar = x1
componentRetryPolicy Gundeck = limitRetries 0

call ::
IntraComponent ->
Expand Down
Loading