Make handling scheduleResult more readable

Signed-off-by: Kante Yin <kerthcet@gmail.com>
This commit is contained in:
Kante Yin
2022-12-22 01:22:34 +08:00
parent fa8ef76a8b
commit c8908716ee
3 changed files with 39 additions and 40 deletions

View File

@@ -279,8 +279,7 @@ func AsStatus(err error) *Status {
}
}
// PluginToStatus maps plugin name to status. Currently used to identify which Filter plugin
// returned which status.
// PluginToStatus maps plugin name to status it returned.
type PluginToStatus map[string]*Status
// Merge merges the statuses in the map into one. The resulting status code have the following