-
Notifications
You must be signed in to change notification settings - Fork 4
[WIP] Add multi token SDK setup support #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
2437caa to
f773b90
Compare
| try { | ||
| const clusterId = req.params.cluster_id; | ||
| if (clusterId) { | ||
| extension = ExtensionFactory.getExtension(clusterId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ExtensionFactory import is missing
| try { | ||
| const cluster_id = req.params.cluster_id; | ||
| if (cluster_id) { | ||
| ext = ExtensionFactory.getExtension(cluster_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ExtensionFactory import is missing
- Specific routes will be matched first based on routing logic of Express so moving cluster id based route as first
| const clusterId = req.params.cluster_id; | ||
| if (clusterId) { | ||
| extension = ExtensionFactory.getExtension(clusterId) | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
req.extension = extension;
Injection of extension instance in the request object will be helpful to get the cluster_id
3262b72 to
8713884
Compare
8713884 to
5134791
Compare
Users should be able to set up multiple extensions on a single server for the Background worker.
Removed singleton extension object.