suport for distributing tasks that contain plugins

This commit is contained in:
xucong053
2022-05-26 10:51:59 +08:00
committed by 徐聪
parent 4ff3179a22
commit c72dc38bd3
4 changed files with 51 additions and 3 deletions

View File

@@ -74,12 +74,12 @@ func newClient(masterHost string, masterPort int, identity string) (client *grpc
func (c *grpcClient) connect() (err error) {
addr := fmt.Sprintf("%v:%v", c.masterHost, c.masterPort)
c.config.conn, err = grpc.Dial(addr, grpc.WithInsecure())
c.config.conn, err = grpc.Dial(addr, grpc.WithInsecure(), grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(1024*1024*1024)))
if err != nil {
log.Error().Err(err).Msg("failed to connect")
return err
}
grpc.MaxCallRecvMsgSize(32 * 10e9)
go c.recv()
go c.send()