mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
parent
8a9852220d
commit
43317530d5
6
Makefile
6
Makefile
@ -71,10 +71,8 @@ verifiers: vet fmt lint cyclo spelling
|
|||||||
|
|
||||||
vet:
|
vet:
|
||||||
@echo "Running $@:"
|
@echo "Running $@:"
|
||||||
@go tool vet -all ./cmd
|
@go vet github.com/minio/minio/cmd/...
|
||||||
@go tool vet -all ./pkg
|
@go vet github.com/minio/minio/pkg/...
|
||||||
@go tool vet -shadow=true ./cmd
|
|
||||||
@go tool vet -shadow=true ./pkg
|
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
@echo "Running $@:"
|
@echo "Running $@:"
|
||||||
|
@ -140,9 +140,9 @@ func newXLObjects(storageDisks []StorageAPI) (ObjectLayer, error) {
|
|||||||
// Check if object cache is enabled.
|
// Check if object cache is enabled.
|
||||||
if xl.objCacheEnabled {
|
if xl.objCacheEnabled {
|
||||||
// Initialize object cache.
|
// Initialize object cache.
|
||||||
objCache, err := objcache.New(maxCacheSize, objcache.DefaultExpiry)
|
objCache, oerr := objcache.New(maxCacheSize, objcache.DefaultExpiry)
|
||||||
if err != nil {
|
if oerr != nil {
|
||||||
return nil, err
|
return nil, oerr
|
||||||
}
|
}
|
||||||
objCache.OnEviction = func(key string) {
|
objCache.OnEviction = func(key string) {
|
||||||
debug.FreeOSMemory()
|
debug.FreeOSMemory()
|
||||||
|
Loading…
Reference in New Issue
Block a user