(ctx context.Context)
| 218 | } |
| 219 | |
| 220 | func (srv *Server) getCoreSchemaBase(ctx context.Context) (*schema.CoreSchemaBase, error) { |
| 221 | srv.coreSchemaBaseMu.Lock() |
| 222 | defer srv.coreSchemaBaseMu.Unlock() |
| 223 | |
| 224 | if srv.coreSchemaBase != nil { |
| 225 | return srv.coreSchemaBase, nil |
| 226 | } |
| 227 | |
| 228 | base, err := schema.NewCoreSchemaBase(ctx, srv) |
| 229 | if err != nil { |
| 230 | return nil, err |
| 231 | } |
| 232 | srv.coreSchemaBase = base |
| 233 | return base, nil |
| 234 | } |
| 235 | |
| 236 | type daggerClientState string |
| 237 |
no test coverage detected