You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the product catalog is initialized only on service startup. If a change is made to products after the service is started, the changes will not be recognized. We should change the product catalog to load on startup and on a configurable periodic interval (e.g., every 10 seconds).
The text was updated successfully, but these errors were encountered:
Modified the main.go file to add periodic reloading of the product catalog. This includes adding a new function for reloading, modifying the main function to start a goroutine for periodic reloading, and updating the productCatalog struct to use a mutex for thread-safe access to the catalog.
Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.
Latta AI seeks to solve problems in open source projects as part of its mission to support developers around the world. Learn more about our mission at https://latta.ai/ourmission . If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.
Feature Request
Currently, the product catalog is initialized only on service startup. If a change is made to products after the service is started, the changes will not be recognized. We should change the product catalog to load on startup and on a configurable periodic interval (e.g., every 10 seconds).
The text was updated successfully, but these errors were encountered: