waku-org/go-waku

View on GitHub
waku/v2/protocol/lightpush/pb/validation.go

Summary

Maintainability
A
1 hr
Test Coverage
A
92%

Method PushRpc.ValidateRequest has 5 return statements (exceeds 4 allowed).
Open

func (x *PushRpc) ValidateRequest() error {
    if x.RequestId == "" {
        return errMissingRequestID
    }

Severity: Major
Found in waku/v2/protocol/lightpush/pb/validation.go - About 35 mins to fix

    Method PushRpc.ValidateResponse has 5 return statements (exceeds 4 allowed).
    Open

    func (x *PushRpc) ValidateResponse(requestID string) error {
        if x.RequestId == REQUESTID_RATE_LIMITED {
            return nil
        }
        if x.RequestId == "" {
    Severity: Major
    Found in waku/v2/protocol/lightpush/pb/validation.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status