mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-12-18 04:37:52 +08:00
avoid double warpping
Signed-off-by: divinerapier <poriter.coco@gmail.com>
This commit is contained in:
parent
344ce90315
commit
9e3b77c3ad
@ -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 New Issue
Block a user