mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Merge pull request #1020 from divinerapier/master
avoid double warpping
This commit is contained in:
commit
f1e43fe274
|
@ -34,6 +34,9 @@ type FilerStoreWrapper struct {
|
|||
}
|
||||
|
||||
func NewFilerStoreWrapper(store FilerStore) *FilerStoreWrapper {
|
||||
if innerStore, ok := store.(*FilerStoreWrapper); ok {
|
||||
return innerStore
|
||||
}
|
||||
return &FilerStoreWrapper{
|
||||
actualStore: store,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue