-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove
HTTP2Settings
from ServerParams
This was a relatively common pattern: ```haskell server <- mkGrpcServer serverParams $ .. forkServer serverParams serverConfig server $ \runningServer -> .. ``` but it is misleading: notice that the `serverParams` need to be passed _twice_, even though on call to `forkServer` we need _only_ the `HTTP2Settings`, and on the call to `mkGrpcServer` we need everything in `ServerParams` _except_ the `HTTP2Settings`: they are completely separate. This gets even more confusing in a pattern such as this: ```haskell server <- mkGrpcServer def $ .. forkServer def serverConfig server $ \runningServer -> .. ``` where we are using `def` in both places; becomes quite easy to make a change in the wrong place, and then be confused that it didn't take effect. We are now separating these two values out completely.
- Loading branch information
Showing
5 changed files
with
36 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters