| 32 | namespace bytedance::bolt::exec { |
| 33 | |
| 34 | std::string probeOperatorStateName(ProbeOperatorState state) { |
| 35 | switch (state) { |
| 36 | case ProbeOperatorState::kWaitForBuild: |
| 37 | return "WAIT_FOR_BUILD"; |
| 38 | case ProbeOperatorState::kRunning: |
| 39 | return "RUNNING"; |
| 40 | case ProbeOperatorState::kWaitForPeers: |
| 41 | return "WAIT_FOR_PEERS"; |
| 42 | case ProbeOperatorState::kFinish: |
| 43 | return "FINISH"; |
| 44 | default: |
| 45 | return fmt::format("UNKNOWN: {}", static_cast<int>(state)); |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | } // namespace bytedance::bolt::exec |
no outgoing calls