(ctx context.Context, id ksuid.KSUID)
| 285 | } |
| 286 | |
| 287 | func (r *Root) OpenPool(ctx context.Context, id ksuid.KSUID) (*Pool, error) { |
| 288 | config, err := r.pools.LookupByID(ctx, id) |
| 289 | if err != nil { |
| 290 | return nil, err |
| 291 | } |
| 292 | return r.openPool(ctx, config) |
| 293 | } |
| 294 | |
| 295 | func (r *Root) openPool(ctx context.Context, config *pools.Config) (*Pool, error) { |
| 296 | if p, ok := r.poolCache.Get(config.ID); ok { |
no test coverage detected