X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fteststub%2FcontrolRmrStub.go;h=ceccf446bc7856d42d402ca4fb706324e68ec861;hb=refs%2Fchanges%2F99%2F4999%2F2;hp=60b3cc55869a79c08ad77e022444429df8c27f20;hpb=6111f59198091a8a5f93e7136b84f51277765c32;p=ric-plt%2Fsubmgr.git diff --git a/pkg/teststub/controlRmrStub.go b/pkg/teststub/controlRmrStub.go index 60b3cc5..ceccf44 100644 --- a/pkg/teststub/controlRmrStub.go +++ b/pkg/teststub/controlRmrStub.go @@ -73,7 +73,15 @@ func (tc *RmrStubControl) Init(desc string, srcId RmrSrcId, rtgSvc RmrRtgSvc, st tc.RecvChan = make(chan *xapp.RMRParams) tc.RmrControl.Init(desc, srcId, rtgSvc) - tc.RMRClient = xapp.NewRMRClientWithParams("tcp:"+strconv.FormatUint(uint64(srcId.Port), 10), 65534, 0, stat) + tc.RMRClient = xapp.NewRMRClientWithParams(&xapp.RMRClientParams{ + ProtPort: "tcp:" + strconv.FormatUint(uint64(srcId.Port), 10), + MaxSize: 65534, + ThreadType: 0, + StatDesc: stat, + LowLatency: false, + FastAck: false, + }) + tc.RMRClient.SetReadyCB(tc.ReadyCB, nil) go tc.RMRClient.Start(tc)