small refactor
All checks were successful
/ Make image (push) Successful in 53s

This commit is contained in:
nquidox 2026-02-28 10:53:33 +03:00
parent c955615fb1
commit 13ebb27335
2 changed files with 48 additions and 41 deletions

View file

@ -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