mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-01 09:50:39 +01:00
Merge pull request #1020 from divinerapier/master
avoid double warpping
This commit is contained in:
1 file changed
+3
@@ -34,6 +34,9 @@ type FilerStoreWrapper struct {
|
||||
}
|
||||
|
||||
func NewFilerStoreWrapper(store FilerStore) *FilerStoreWrapper {
|
||||
if innerStore, ok := store.(*FilerStoreWrapper); ok {
|
||||
return innerStore
|
||||
}
|
||||
return &FilerStoreWrapper{
|
||||
actualStore: store,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user