refine outbound proxy handler interface

This commit is contained in:
Darien Raymond committed 2016-11-27 23:57:19 +01:00
1 parent 2a37c62e07
commit 14829f67f0
7 files changed
+20 -44

No files matched your search

+1 -3
View File
@@ -18,7 +18,7 @@ type OutboundConnectionHandler struct {
ConnOutput io.Writer
}
func (v *OutboundConnectionHandler) Dispatch(destination v2net.Destination, payload *alloc.Buffer, ray ray.OutboundRay) error {
func (v *OutboundConnectionHandler) Dispatch(destination v2net.Destination, payload *alloc.Buffer, ray ray.OutboundRay) {
input := ray.OutboundInput()
output := ray.OutboundOutput()
@@ -48,8 +48,6 @@ func (v *OutboundConnectionHandler) Dispatch(destination v2net.Destination, payl
v2io.Pipe(v2reader, output)
output.Close()
return nil
}
func (v *OutboundConnectionHandler) Create(space app.Space, config interface{}, sendThrough v2net.Address) (proxy.OutboundHandler, error) {