Move accounts into rove-server.internal
This commit is contained in:
parent
9ccb7ac019
commit
46f81abbd7
5 changed files with 6 additions and 7 deletions
|
@ -6,7 +6,6 @@ import (
|
|||
"net"
|
||||
"sync"
|
||||
|
||||
"github.com/mdiluz/rove/pkg/accounts"
|
||||
"github.com/mdiluz/rove/pkg/persistence"
|
||||
"github.com/mdiluz/rove/pkg/rove"
|
||||
"github.com/mdiluz/rove/pkg/roveapi"
|
||||
|
@ -29,7 +28,7 @@ type Server struct {
|
|||
world *rove.World
|
||||
|
||||
// Accountant
|
||||
accountant accounts.Accountant
|
||||
accountant Accountant
|
||||
|
||||
// gRPC server
|
||||
netListener net.Listener
|
||||
|
@ -81,7 +80,7 @@ func NewServer(opts ...ServerOption) *Server {
|
|||
persistence: EphemeralData,
|
||||
schedule: cron.New(),
|
||||
world: rove.NewWorld(32),
|
||||
accountant: accounts.NewSimpleAccountant(),
|
||||
accountant: NewSimpleAccountant(),
|
||||
}
|
||||
|
||||
// Apply all options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue