Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
fix: Upgrade cqproto protocol to v5 (#285)
Browse files Browse the repository at this point in the history
Co-authored-by: Kemal Hadimli <[email protected]>
  • Loading branch information
disq and disq authored May 24, 2022
1 parent 849cad3 commit 7d14f65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions cqproto/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

const (
V4 = 4
V5 = 5

Vunmanaged = -1
)
Expand Down
5 changes: 3 additions & 2 deletions serve/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@ func serve(opts *Options) {
plugin.Serve(&plugin.ServeConfig{
HandshakeConfig: Handshake,
VersionedPlugins: map[int]plugin.PluginSet{
cqproto.V4: {
cqproto.V5: {
"provider": &cqproto.CQPlugin{Impl: opts.Provider},
}},
},
},
GRPCServer: func(opts []grpc.ServerOption) *grpc.Server {
return grpc.NewServer(opts...)
},
Expand Down

0 comments on commit 7d14f65

Please sign in to comment.