@@ -31,8 +31,8 @@ import (
3131 "github.com/CovenantSQL/CovenantSQL/crypto/kms"
3232 "github.com/CovenantSQL/CovenantSQL/proto"
3333 "github.com/CovenantSQL/CovenantSQL/route"
34- rrpc "github.com/CovenantSQL/CovenantSQL/rpc"
35- rpc "github.com/CovenantSQL/CovenantSQL/rpc/mux"
34+ "github.com/CovenantSQL/CovenantSQL/rpc"
35+ "github.com/CovenantSQL/CovenantSQL/rpc/mux"
3636 "github.com/CovenantSQL/CovenantSQL/types"
3737 "github.com/CovenantSQL/CovenantSQL/utils"
3838 "github.com/CovenantSQL/CovenantSQL/utils/log"
@@ -99,7 +99,7 @@ type Service struct {
9999 upstreamServers sync.Map // map[proto.DatabaseID]*types.ServiceInstance
100100
101101 db * bolt.DB
102- caller * rrpc .Caller
102+ caller * rpc .Caller
103103 stopped int32
104104}
105105
@@ -147,7 +147,7 @@ func NewService() (service *Service, err error) {
147147 // init service
148148 service = & Service {
149149 db : db ,
150- caller : rrpc .NewCallerWithPool (rpc .GetSessionPoolInstance ()),
150+ caller : rpc .NewCallerWithPool (mux .GetSessionPoolInstance ()),
151151 }
152152
153153 // load previous subscriptions
@@ -411,7 +411,7 @@ func (s *Service) getUpstream(dbID proto.DatabaseID) (instance *types.ServiceIns
411411 return
412412 }
413413
414- curBP , err := rpc .GetCurrentBP ()
414+ curBP , err := mux .GetCurrentBP ()
415415 if err != nil {
416416 return
417417 }
0 commit comments