-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package versions | ||
|
||
import ( | ||
"context" | ||
) | ||
|
||
// Version4 implements ConfigVersion | ||
type Version4 struct { | ||
} | ||
|
||
func init() { | ||
Manager.registerVersion(4, &Version4{}) | ||
} | ||
|
||
// UpgradeConfig sets OrderManager config to defaults | ||
func (v *Version4) UpgradeConfig(_ context.Context, c []byte) ([]byte, error) { | ||
return e, err | ||
Check failure on line 17 in config/versions/v4.go
|
||
} | ||
|
||
// DowngradeConfig doesn't need to do anything for this version | ||
func (v *Version4) DowngradeConfig(_ context.Context, e []byte) ([]byte, error) { | ||
return e, nil | ||
} |