of_rpc => grpc
This commit is contained in:
parent
faadbe2552
commit
8bba2fff61
|
@ -17,7 +17,7 @@ import (
|
|||
|
||||
type call func() crawler.Crawler
|
||||
|
||||
func initRPCServer(cc call) {
|
||||
func startRPCServerTest(cc call) {
|
||||
rr:=cc()
|
||||
AddDelegate(pb.Crawlers_HEALTH_REDIS.String(),rr)
|
||||
go start(&ConfigServer{},&DataServer{})
|
||||
|
@ -49,7 +49,7 @@ func clientCall(t *testing.T,cl pb.Crawlers) {
|
|||
|
||||
|
||||
func TestRedisGRPC(t *testing.T) {
|
||||
go initRPCServer( func() crawler.Crawler {
|
||||
go startRPCServerTest( func() crawler.Crawler {
|
||||
rr := redis_protocol_crawler_go.NewRedisHeahthCrawler()
|
||||
m := make(map[string]interface{}, 0)
|
||||
m["ip"] = "192.168.1.104"
|
||||
|
|
Loading…
Reference in New Issue
Block a user