update lightest peer and nats behaviors

This commit is contained in:
mr
2026-02-18 14:32:44 +01:00
parent 0250c3b339
commit 88fd05066c
8 changed files with 36 additions and 51 deletions

View File

@@ -19,7 +19,7 @@ type Verify struct {
func (ps *StreamService) handleEvent(protocol string, evt *common.Event) error {
ps.handleEventFromPartner(evt, protocol)
if protocol == ProtocolVerifyResource {
/*if protocol == ProtocolVerifyResource {
if evt.DataType == -1 {
tools.NewNATSCaller().SetNATSPub(tools.VERIFY_RESOURCE, tools.NATSResponse{
FromApp: "oc-discovery",
@@ -29,7 +29,7 @@ func (ps *StreamService) handleEvent(protocol string, evt *common.Event) error {
} else if err := ps.verifyResponse(evt); err != nil {
return err
}
}
}*/
if protocol == ProtocolSearchResource && evt.DataType > -1 {
if err := ps.retrieveResponse(evt); err != nil {
return err