chore: replace all cn comments to en version by volc api (#313)

This commit is contained in:
tecvan
2025-07-31 15:18:11 +08:00
committed by GitHub
parent 91d6cdb430
commit 5abc63fba6
254 changed files with 5899 additions and 5844 deletions

View File

@@ -263,7 +263,7 @@ func TestDatabaseCURD(t *testing.T) {
}
func TestHttpRequester(t *testing.T) {
listener, err := net.Listen("tcp", "127.0.0.1:8080") // 指定IP和端口
listener, err := net.Listen("tcp", "127.0.0.1:8080") // Specify IP and port
assert.NoError(t, err)
ts := httptest.NewUnstartedServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if r.URL.Path != "/http_error" {

View File

@@ -527,7 +527,7 @@ func validateConnections(ctx context.Context, c *vo.Canvas) (issues []*Issue, er
outDegree[edge.SourceNodeID]++
}
portOutDegree := make(map[string]map[string]int) // 节点ID -> 端口 -> 出度
portOutDegree := make(map[string]map[string]int) // Node ID - > Port - > Outgoing
for _, edge := range c.Edges {
if _, ok := selectorPorts[edge.SourceNodeID]; !ok {
@@ -573,7 +573,7 @@ func validateConnections(ctx context.Context, c *vo.Canvas) (issues []*Issue, er
issues = append(issues, selectorIssues)
}
} else {
// break, continue 不检查出度
// Break, continue without checking out degrees
if node.Type == vo.BlockTypeBotBreak || node.Type == vo.BlockTypeBotContinue {
continue
}