Skip to content

Commit

Permalink
fix subscription recovery
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Ding <[email protected]>
  • Loading branch information
jzding committed Aug 8, 2024
1 parent f9bea0c commit 2e4a81b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions v1/subscriber/subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ func GetAPIInstance(storeFilePath string) *API {
storeFilePath: storeFilePath,
}
hasDir(storeFilePath)
instance.ReloadStore()
})
instance.ReloadStore()
return instance
}

Expand All @@ -88,9 +88,11 @@ func (p *API) ReloadStore() {
log.Errorf("subscriber data from file %s is not valid", f)
}
} else {
log.Errorf("error parsing subscriber %s \n %s", string(b), err2.Error())
log.Errorf("error parsing subscriber %s\n %s", string(b), err2.Error())
}
}
} else {
log.Errorf("error loading file %s\n %s", fmt.Sprintf("%s/%s", p.storeFilePath, f), err1.Error())
}
}
}
Expand Down

0 comments on commit 2e4a81b

Please sign in to comment.