chore: replace all cn comments to en version by volc api (#313)
This commit is contained in:
@@ -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" {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user