mirror of
https://github.com/minio/minio.git
synced 2025-11-10 05:59:43 -05:00
Separate the codebase for XL and FS format.json related code (#5317)
This commit is contained in:
committed by
kannappanr
parent
ccd9767b7a
commit
7c72d14027
@@ -263,3 +263,11 @@ func NewCustomHTTPTransport() http.RoundTripper {
|
||||
DisableCompression: true,
|
||||
}
|
||||
}
|
||||
|
||||
// Load the json (typically from disk file).
|
||||
func jsonLoadFromSeeker(r io.ReadSeeker, data interface{}) error {
|
||||
if _, err := r.Seek(0, io.SeekStart); err != nil {
|
||||
return err
|
||||
}
|
||||
return json.NewDecoder(r).Decode(data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user