Browse Source
Merge pull request #1020 from divinerapier/master
avoid double warpping
pull/1021/head
Chris Lu
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
weed/filer2/filerstore.go
|
@ -34,6 +34,9 @@ type FilerStoreWrapper struct { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func NewFilerStoreWrapper(store FilerStore) *FilerStoreWrapper { |
|
|
func NewFilerStoreWrapper(store FilerStore) *FilerStoreWrapper { |
|
|
|
|
|
if innerStore, ok := store.(*FilerStoreWrapper); ok { |
|
|
|
|
|
return innerStore |
|
|
|
|
|
} |
|
|
return &FilerStoreWrapper{ |
|
|
return &FilerStoreWrapper{ |
|
|
actualStore: store, |
|
|
actualStore: store, |
|
|
} |
|
|
} |
|
|