(c *StateStoreConfig)
| 201 | } |
| 202 | |
| 203 | func DefaultStateStoreLoader(c *StateStoreConfig) (api.StateStore, error) { |
| 204 | switch strings.ToLower(*c.Type) { |
| 205 | case common.StateStorePebble: |
| 206 | return statestore.NewTmpPebbleStateStore() |
| 207 | } |
| 208 | return nil, fmt.Errorf("unsupported state store type [%s] %w", *c.Type, ErrUnsupportedStateStore) |
| 209 | } |
| 210 | |
| 211 | func WithConfig(config *Config) ServerOption { |
| 212 | return serverOptionFunc(func(o *serverOptions) (*serverOptions, error) { |
nothing calls this directly
no test coverage detected