of_rpc => grpc

This commit is contained in:
jackdaw@loafle.com 2017-04-12 21:03:20 +09:00
parent faadbe2552
commit 8bba2fff61

View File

@ -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"