(i any)
| 32 | ) |
| 33 | |
| 34 | func closeIfNeeded(i any) { |
| 35 | if c, ok := i.(container.LifetimeModule); ok { |
| 36 | if err := c.Stop(); err != nil { |
| 37 | log.DefaultLogger.Error("failed to stop module", err) |
| 38 | } |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | type managedStorage struct { |
| 43 | module.ManageableStorage |