feat: expose append-only ledger health
This commit is contained in:
1 parent
32e7b6b749
commit
83720ba9d1
4 files changed
+28
-19
No files matched your search
@@ -21,9 +21,10 @@ func NewService(database Database) *Service {
|
||||
}
|
||||
|
||||
func (s *Service) Check(ctx context.Context) Status {
|
||||
status := Status{Serving: true}
|
||||
status := Status{}
|
||||
if s.database != nil {
|
||||
status.DatabaseReady = s.database.Ping(ctx) == nil
|
||||
}
|
||||
status.Serving = status.DatabaseReady
|
||||
return status
|
||||
}
|
||||
Reference in new issue
Block a user