| 150 | } |
| 151 | |
| 152 | std::string commitStrategyToString(CommitStrategy commitStrategy) { |
| 153 | switch (commitStrategy) { |
| 154 | case CommitStrategy::kNoCommit: |
| 155 | return "NO_COMMIT"; |
| 156 | case CommitStrategy::kTaskCommit: |
| 157 | return "TASK_COMMIT"; |
| 158 | default: |
| 159 | BOLT_UNREACHABLE( |
| 160 | "UNKNOWN COMMIT STRATEGY: {}", static_cast<int>(commitStrategy)); |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | CommitStrategy stringToCommitStrategy(const std::string& strategy) { |
| 165 | if (strategy == "NO_COMMIT") { |
no outgoing calls