nitpick ordering

This commit is contained in:
Asim 2015-11-25 20:22:49 +00:00
parent 12a1e1eeda
commit 40fea1ac24

View File

@ -9,11 +9,6 @@ import (
"github.com/youtube/vitess/go/rpcplus/pbrpc" "github.com/youtube/vitess/go/rpcplus/pbrpc"
) )
type CodecFunc func(io.ReadWriteCloser) rpc.ServerCodec
// for internal use only
type codecFunc func(io.ReadWriteCloser) rpcplus.ServerCodec
var ( var (
defaultCodecs = map[string]codecFunc{ defaultCodecs = map[string]codecFunc{
"application/json": jsonrpc.NewServerCodec, "application/json": jsonrpc.NewServerCodec,
@ -24,6 +19,11 @@ var (
} }
) )
type CodecFunc func(io.ReadWriteCloser) rpc.ServerCodec
// for internal use only
type codecFunc func(io.ReadWriteCloser) rpcplus.ServerCodec
// wraps an net/rpc ServerCodec to provide an rpcplus.ServerCodec // wraps an net/rpc ServerCodec to provide an rpcplus.ServerCodec
// temporary until we strip out use of rpcplus // temporary until we strip out use of rpcplus
type rpcCodecWrap struct { type rpcCodecWrap struct {