ec-node: moq-rs draft-07 for Cloudflare relay
This commit is contained in:
parent
ce8c1319f4
commit
09246513ab
6 changed files with 36 additions and 47 deletions
|
|
@ -294,7 +294,14 @@ in
|
|||
${lib.optionalString cfg.tlsDisableVerify "cmd+=(--tls-disable-verify)"}
|
||||
${extraArgsLine}
|
||||
|
||||
exec "''${cmd[@]}"
|
||||
# Keep the unit alive even if the relay is temporarily unreachable.
|
||||
# This avoids `switch-to-configuration test` failing due to a unit that exits
|
||||
# quickly during activation.
|
||||
trap 'exit 0' INT TERM
|
||||
while true; do
|
||||
"''${cmd[@]}" || true
|
||||
sleep 2
|
||||
done
|
||||
'';
|
||||
};
|
||||
in
|
||||
|
|
|
|||
|
|
@ -24,6 +24,10 @@ rustPlatform.buildRustPackage {
|
|||
|
||||
cargoLock = {
|
||||
lockFile = ../../Cargo.lock;
|
||||
outputHashes = {
|
||||
# Filled iteratively when git dependencies change.
|
||||
"moq-catalog-0.2.2" = "sha256-df9KXVBRiNewDJ7ZgGBja81PPnk8vC9TA0bDIG0892o=";
|
||||
};
|
||||
};
|
||||
|
||||
cargoBuildFlags = [ "-p" "ec-node" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue