nitpick ordering
This commit is contained in:
parent
12a1e1eeda
commit
40fea1ac24
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user