feat: add dependency shutdown and configurable service endpoints
This commit is contained in:
@@ -8,6 +8,9 @@ func (c *ServiceContext) Close() error {
|
||||
return nil
|
||||
}
|
||||
c.closeOnce.Do(func() {
|
||||
if c.Lifecycle != nil {
|
||||
c.Lifecycle.RequestShutdown(nil)
|
||||
}
|
||||
c.closeMu.Lock()
|
||||
c.closed = true
|
||||
cleanups := c.cleanups
|
||||
|
||||
Reference in New Issue
Block a user