mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-04-05 20:52:50 +08: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 {
|
func NewFilerStoreWrapper(store FilerStore) *FilerStoreWrapper {
|
||||||
|
if innerStore, ok := store.(*FilerStoreWrapper); ok {
|
||||||
|
return innerStore
|
||||||
|
}
|
||||||
return &FilerStoreWrapper{
|
return &FilerStoreWrapper{
|
||||||
actualStore: store,
|
actualStore: store,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user