()
| 37 | } |
| 38 | |
| 39 | func (c *Config) Validate() error { |
| 40 | if _, err := encoding.FromVersionForWrites(c.Version); err != nil { |
| 41 | return fmt.Errorf("failed to validate block version %s: %w", c.Version, err) |
| 42 | } |
| 43 | |
| 44 | return nil |
| 45 | } |
| 46 | |
| 47 | func New(c *Config) (*WAL, error) { |
| 48 | if c.Filepath == "" { |
nothing calls this directly
no test coverage detected