mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-30 18:00:56 +01:00
fix: get all spider issue
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
12
core/grpc/server/metrics_server_v2.go
Normal file
12
core/grpc/server/metrics_server_v2.go
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user