Remove event_queue GK
Summary: Did run for 2 months stable now, time to remove some dead code. Reviewed By: passy Differential Revision: D20556785 fbshipit-source-id: 514673995212d62d21744f304286caa6e91007fb
This commit is contained in:
committed by
Facebook GitHub Bot
parent
06cd90562d
commit
d103692883
@@ -25,11 +25,7 @@ import {EventEmitter} from 'events';
|
||||
import invariant from 'invariant';
|
||||
import {flipperRecorderAddEvent} from './utils/pluginStateRecorder';
|
||||
import {getPluginKey} from './utils/pluginUtils';
|
||||
import {
|
||||
processMessageImmediately,
|
||||
processMessageLater,
|
||||
} from './utils/messageQueue';
|
||||
import GK from './fb-stubs/GK';
|
||||
import {processMessageLater} from './utils/messageQueue';
|
||||
|
||||
type Plugins = Array<string>;
|
||||
|
||||
@@ -350,21 +346,12 @@ export default class Client extends EventEmitter {
|
||||
if (persistingPlugin && persistingPlugin.persistedStateReducer) {
|
||||
const pluginKey = getPluginKey(this.id, device, params.api);
|
||||
flipperRecorderAddEvent(pluginKey, params.method, params.params);
|
||||
if (GK.get('flipper_event_queue')) {
|
||||
processMessageLater(
|
||||
this.store,
|
||||
pluginKey,
|
||||
persistingPlugin,
|
||||
params,
|
||||
);
|
||||
} else {
|
||||
processMessageImmediately(
|
||||
this.store,
|
||||
pluginKey,
|
||||
persistingPlugin,
|
||||
params,
|
||||
);
|
||||
}
|
||||
processMessageLater(
|
||||
this.store,
|
||||
pluginKey,
|
||||
persistingPlugin,
|
||||
params,
|
||||
);
|
||||
}
|
||||
} else {
|
||||
console.warn(
|
||||
|
||||
Reference in New Issue
Block a user