streamdal/go-sdk

View on GitHub
function.go

Summary

Maintainability
A
1 hr
Test Coverage
C
72%

Method function.Exec has 10 return statements (exceeds 4 allowed).
Open

func (f *function) Exec(ctx context.Context, req []byte) ([]byte, error) {
    ptrLen := uint64(len(req))

    inputPtr, err := f.alloc.Call(ctx, ptrLen)
    if err != nil {
Severity: Major
Found in function.go - About 1 hr to fix

    Method Streamdal.createFunction has 5 return statements (exceeds 4 allowed).
    Open

    func (s *Streamdal) createFunction(step *protos.PipelineStep) (*function, error) {
        inst, err := s.createWASMInstance(step.GetXWasmBytes())
        if err != nil {
            return nil, errors.Wrap(err, "unable to create WASM instance")
        }
    Severity: Major
    Found in function.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status