Skip to content

Commit

Permalink
Format code in RunInterruptedFunction::compile
Browse files Browse the repository at this point in the history
  • Loading branch information
apolyakov committed Nov 6, 2024
1 parent a64aade commit d1d46e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler/code-gen/files/init-scripts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ struct RunInterruptedFunction {
void compile(CodeGenerator &W) const {
std::string await_prefix = function->is_interruptible ? "co_await " : "";
std::string image_kind = G->is_output_mode_k2_cli() ? "ImageKind::CLI"
: G->is_output_mode_k2_server() ? "ImageKind::Server"
: G->is_output_mode_k2_oneshot() ? "ImageKind::Oneshot"
: G->is_output_mode_k2_multishot() ? "ImageKind::Multishot"
: "ImageKind::Invalid";
: G->is_output_mode_k2_server() ? "ImageKind::Server"
: G->is_output_mode_k2_oneshot() ? "ImageKind::Oneshot"
: G->is_output_mode_k2_multishot() ? "ImageKind::Multishot"
: "ImageKind::Invalid";

std::string script_start = "co_await InstanceState::get().run_instance_prologue<" + image_kind + ">();";
std::string script_finish = "co_await InstanceState::get().run_instance_epilogue();";
Expand Down

0 comments on commit d1d46e2

Please sign in to comment.