(ctx context.Context)
| 68 | } |
| 69 | |
| 70 | func NewFSReconcile(ctx context.Context) *FSSReconcileServer { |
| 71 | return &FSSReconcileServer{ |
| 72 | ctx: ctx, |
| 73 | readyCh: make(chan struct{}), |
| 74 | reconcile: make(chan *proto.FunctionStatus, 100), |
| 75 | functions: make(map[string]*FuncRuntime), |
| 76 | log: slog.With(slog.String("component", "grpc-reconcile-server")), |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | func (s *FSSReconcileServer) WaitForReady() <-chan struct{} { |
| 81 | return s.readyCh |