This commit is contained in:
parent
c955615fb1
commit
13ebb27335
2 changed files with 48 additions and 41 deletions
|
|
@ -12,10 +12,10 @@ type Server struct {
|
|||
state *appState.State
|
||||
}
|
||||
|
||||
func newServer(app *App) *grpc.Server {
|
||||
func newServer(state *appState.State) *grpc.Server {
|
||||
s := grpc.NewServer()
|
||||
srv := &Server{
|
||||
state: app.state,
|
||||
state: state,
|
||||
}
|
||||
pb.RegisterTaskProcessorServer(s, srv)
|
||||
return s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue