mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Export performance optimization (#475)
* recreate metadata path if needed, before exporting data
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
package jsonschema
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/json-iterator/go"
|
||||
"os"
|
||||
)
|
||||
|
||||
@@ -31,6 +31,7 @@ func LoadMappingsFile(filePath string) (*Mappings, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
var json = jsoniter.ConfigCompatibleWithStandardLibrary
|
||||
jsonParser := json.NewDecoder(file)
|
||||
err = jsonParser.Decode(&mappings)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user