function.go
Method function.Exec
has 10 return statements (exceeds 4 allowed). Open
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 {
Method Streamdal.createFunction
has 5 return statements (exceeds 4 allowed). Open
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")
}