From 40fea1ac2451d9f54e3de85e469244898a9f1002 Mon Sep 17 00:00:00 2001 From: Asim Date: Wed, 25 Nov 2015 20:22:49 +0000 Subject: [PATCH] nitpick ordering --- server/codec.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/codec.go b/server/codec.go index 1d117960..0f96ee03 100644 --- a/server/codec.go +++ b/server/codec.go @@ -9,11 +9,6 @@ import ( "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 ( defaultCodecs = map[string]codecFunc{ "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 // temporary until we strip out use of rpcplus type rpcCodecWrap struct {