Skip to content

Commit

Permalink
Revert "Use fibers to store context"
Browse files Browse the repository at this point in the history
This reverts commit 8f6d4c8.
  • Loading branch information
sampaiodiego committed Jan 10, 2022
1 parent 8f6d4c8 commit 0e755f2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 68 deletions.
14 changes: 0 additions & 14 deletions ee/server/services/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions ee/server/services/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"ejson": "^2.2.2",
"eventemitter3": "^4.0.7",
"express": "^4.17.1",
"fibers": "^5.0.0",
"jaeger-client": "^3.18.1",
"mem": "^8.1.1",
"moleculer": "^0.14.14",
Expand All @@ -51,7 +50,6 @@
"@types/cookie-parser": "^1.4.2",
"@types/ejson": "^2.1.3",
"@types/express": "^4.17.13",
"@types/fibers": "^3.1.1",
"@types/mongodb": "^3.6.19",
"@types/node": "^14.17.4",
"@types/ws": "^7.4.7",
Expand Down
7 changes: 4 additions & 3 deletions server/sdk/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { IServiceContext } from './types/ServiceClass';
import { AsyncLocalStorage } from 'async_hooks';

import { proxify, proxifyWithWait } from './lib/proxify';
import { IAuthorization } from './types/IAuthorization';
import { IServiceContext } from './types/ServiceClass';
import { IPresence } from './types/IPresence';
import { IAccount } from './types/IAccount';
import { ILicense } from './types/ILicense';
Expand All @@ -14,7 +16,6 @@ import { IRoomService } from './types/IRoomService';
import { IMediaService } from './types/IMediaService';
import { IAnalyticsService } from './types/IAnalyticsService';
import { ILDAPService } from './types/ILDAPService';
import { ContextStore } from './lib/ContextStore';

// TODO think in a way to not have to pass the service name to proxify here as well
export const Authorization = proxifyWithWait<IAuthorization>('authorization');
Expand All @@ -35,4 +36,4 @@ export const LDAP = proxifyWithWait<ILDAPService>('ldap');
// of service/method not available
export const EnterpriseSettings = proxify<IEnterpriseSettings>('ee-settings');

export const asyncLocalStorage = new ContextStore<IServiceContext>();
export const asyncLocalStorage = new AsyncLocalStorage<IServiceContext>();
49 changes: 0 additions & 49 deletions server/sdk/lib/ContextStore.ts

This file was deleted.

0 comments on commit 0e755f2

Please sign in to comment.