Skip to content

Commit

Permalink
fix: get all spider issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Jun 26, 2024
1 parent 73a5a64 commit 9c620fa
Show file tree
Hide file tree
Showing 32 changed files with 979 additions and 303 deletions.
2 changes: 1 addition & 1 deletion core/controllers/spider_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func GetSpiderList(c *gin.Context) {
// get all list
all := MustGetFilterAll(c)
if all {
NewControllerV2[models.ProjectV2]().getAll(c)
NewControllerV2[models.SpiderV2]().getAll(c)
return
}

Expand Down
12 changes: 12 additions & 0 deletions core/grpc/server/metrics_server_v2.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package server

import (
"github.com/crawlab-team/crawlab/grpc"
"sync"
)

type MetricsServerV2 struct {
grpc.UnimplementedMetricsServiceV2Server
mu *sync.Mutex
streams map[string]*grpc.MetricsServiceV2_ConnectServer
}
21 changes: 8 additions & 13 deletions grpc/dependencies_service_v2.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 21 additions & 12 deletions grpc/dependencies_service_v2_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 3 additions & 8 deletions grpc/message_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 12 additions & 7 deletions grpc/message_service_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9c620fa

Please sign in to comment.