Skip to content

Commit

Permalink
update kvproto
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <[email protected]>
  • Loading branch information
rleungx committed Sep 6, 2023
1 parent 5ccd162 commit 200a944
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import (
"github.com/pingcap/kvproto/pkg/keyspacepb"
"github.com/pingcap/kvproto/pkg/metapb"
"github.com/pingcap/kvproto/pkg/pdpb"
"github.com/pingcap/kvproto/pkg/schedulingpb"
"github.com/pingcap/kvproto/pkg/tsopb"
"github.com/pingcap/log"
"github.com/pingcap/sysutil"
Expand Down Expand Up @@ -1994,7 +1995,7 @@ func (s *Server) initSchedulingPrimaryWatcher() {
schedulingRootPath := endpoint.SchedulingSvcRootPath(s.clusterID)
schedulingServicePrimaryKey := path.Join(schedulingRootPath, mcs.PrimaryKey)
putFn := func(kv *mvccpb.KeyValue) error {
primary := &tsopb.Participant{} // TODO: use Generics
primary := &schedulingpb.Participant{} // TODO: use Generics
if err := proto.Unmarshal(kv.Value, primary); err != nil {
return err
}
Expand Down

0 comments on commit 200a944

Please sign in to comment.