Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
Luan van Pletsen committed Feb 21, 2018
1 parent fb6f059 commit dbf042b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions mw_virtual_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,6 @@ func (d *VirtualEndpoint) ServeHTTPForCache(w http.ResponseWriter, r *http.Reque
return nil
}

// Run the middleware
// vm := d.Spec.JSVM.VM.Copy()
// returnRaw, err := vm.Run(vmeta.ResponseFunctionName + `(` + string(requestAsJson) + `, ` + string(sessionAsJson) + `, ` + specAsJson + `);`)
// if err != nil {
// log.Error("Failed to run virtual endpoint JS code:", err)
// return nil
// }
// returnDataStr, _ := returnRaw.ToString()

// Run the middleware
vm := d.Spec.JSVM.VM.Copy()
vm.Interrupt = make(chan func(), 1)
Expand Down

0 comments on commit dbf042b

Please sign in to comment.