Commit 8a67a5cf authored by vipwzw's avatar vipwzw

del no use file

parent 7c71130e
package rpc
import (
ptypes "github.com/33cn/chain33/plugin/dapp/js/types"
rpctypes "github.com/33cn/chain33/rpc/types"
)
type channelClient struct {
rpctypes.ChannelClient
}
type Jrpc struct {
cli *channelClient
}
type Grpc struct {
*channelClient
}
func Init(name string, s rpctypes.RPCServer) {
cli := &channelClient{}
grpc := &Grpc{channelClient: cli}
cli.Init(name, s, &Jrpc{cli: cli}, grpc)
ptypes.RegisterTradeServer(s.GRPC(), grpc)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment