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

Push directive #254

Merged
merged 3 commits into from
May 29, 2024
Merged

Push directive #254

merged 3 commits into from
May 29, 2024

Conversation

reynir
Copy link
Contributor

@reynir reynir commented May 23, 2024

This implements the --push configuration directive.

I think maybe our a_param is not correct, and I will take a look at that.

Fmt.str "%a" (Config.pp_b ~sep)
(Config.Conf_map.B (Protocol_flags, flags)))
|> Option.to_list)
@ Option.value ~default:[] (Config.find Push config)
in
let reply = String.concat "," reply_things in
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may consider creating a Config.Conf_map.t instead...

src/engine.ml Show resolved Hide resolved
src/config.ml Outdated Show resolved Hide resolved
We send the push options specified with --push configuration directive.

How we serialized --protocol-flags in push reply was wrong in an
insignificant way.
src/config.ml Show resolved Hide resolved
src/config.ml Outdated Show resolved Hide resolved
src/engine.ml Show resolved Hide resolved
src/engine.ml Show resolved Hide resolved
The comment about a_single_param (incorrectly referred to as a_param)
was unclear.

Also use the {|other string|} literal to avoid long, unreadable escape
sequences.

Co-authored-by: Hannes Mehnert <[email protected]>
@hannesm hannesm merged commit e561997 into main May 29, 2024
1 of 4 checks passed
@hannesm hannesm deleted the push branch May 29, 2024 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants