(ctx context.Context)
| 112 | } |
| 113 | |
| 114 | func (r *Root) loadConfig(ctx context.Context) error { |
| 115 | if err := r.readMagic(ctx); err != nil { |
| 116 | return err |
| 117 | } |
| 118 | poolPath := r.path.JoinPath(PoolsTag) |
| 119 | var err error |
| 120 | r.pools, err = pools.OpenStore(ctx, r.engine, r.logger, poolPath) |
| 121 | if err != nil { |
| 122 | return err |
| 123 | } |
| 124 | return err |
| 125 | } |
| 126 | |
| 127 | func (r *Root) writeMagic(ctx context.Context) error { |
| 128 | if err := r.readMagic(ctx); err == nil { |