Close properly closes all connections and resources used by the LedgerForge instance.
()
| 171 | |
| 172 | // Close properly closes all connections and resources used by the LedgerForge instance. |
| 173 | func (b *LedgerForge) Close() error { |
| 174 | if b.asynqClient != nil { |
| 175 | return b.asynqClient.Close() |
| 176 | } |
| 177 | return nil |
| 178 | } |
| 179 | |
| 180 | // Config returns the cached configuration for the LedgerForge instance. |
| 181 | // Falls back to config.Fetch() if not initialized (for backward compatibility with tests). |
no outgoing calls