mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 20:37:23 +08:00
avoid double warpping
Signed-off-by: divinerapier <poriter.coco@gmail.com>
This commit is contained in:
@@ -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,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user