major refactor
All checks were successful
Build and Publish / Metadata (push) Successful in 4s
Build and Publish / BuildAndDeployAmd64 (push) Successful in 49s
Build and Publish / BuildAndDeployArm64 (push) Successful in 3m49s

This commit is contained in:
2025-10-11 10:22:47 +02:00
parent e48a2590bd
commit 24cd0b6ad7
7 changed files with 278 additions and 573 deletions

View File

@@ -164,19 +164,20 @@ func main() {
if err != nil {
log.Printf("Error loading state: %v\n", err)
}
localPool := NewGrainLocalPool(2*65535, 15*time.Minute, spawn)
app := &App{
pool: NewGrainLocalPool(65535, 15*time.Minute, spawn),
pool: localPool,
storage: storage,
}
syncedPool, err := NewSyncedPool(app.pool, podIp, GetDiscovery())
syncedPool, err := NewSyncedPool(localPool, podIp, GetDiscovery())
if err != nil {
log.Fatalf("Error creating synced pool: %v\n", err)
}
// Start unified gRPC server (CartActor + ControlPlane) replacing legacy RPC server on :1337
// TODO: Remove any remaining legacy RPC server references and deprecated frame-based code after full gRPC migration is validated.
grpcSrv, err := StartGRPCServer(":1337", app.pool, syncedPool)
grpcSrv, err := StartGRPCServer(":1337", syncedPool)
if err != nil {
log.Fatalf("Error starting gRPC server: %v\n", err)
}