Skip to content

Commit 22c719e

Browse files
VLanvinfacebook-github-bot
authored andcommitted
Revert IPC protocol merge
Summary: Essentially a manual revert of D51524775 and D51584599, since these two diffs may be the cause of errors in CI. Reviewed By: perehonchuk Differential Revision: D52372925 fbshipit-source-id: 6530356dcd7de6949eec7dd87364860fa09c2782
1 parent 090fc58 commit 22c719e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

eqwalizer/src/main/scala/com/whatsapp/eqwalizer/Main.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ object Main {
5858
}
5959
val modules = ipcArgs.tail
6060
val modulesAndStorages = modules.distinct.flatMap(m => DbApi.getAstStorage(m).map(m -> _))
61-
if (config.useElp()) {
62-
ELPDiagnostics.getDiagnosticsIpc(modulesAndStorages)
61+
if (config.mode == Mode.Shell) {
62+
ELPDiagnostics.getDiagnosticsIpcShell(modulesAndStorages)
6363
} else {
64-
ELPDiagnostics.getDiagnosticsIpcMiniElp(modulesAndStorages)
64+
ELPDiagnostics.getDiagnosticsIpc(modulesAndStorages)
6565
}
6666
}
6767

eqwalizer/src/main/scala/com/whatsapp/eqwalizer/util/ELPDiagnostics.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ object ELPDiagnostics {
2828
def getDiagnosticsString(module: String, astStorage: DbApi.AstStorage, options: Options = noOptions): String =
2929
toJsonObj(Map(module -> getDiagnostics(module, astStorage, options))).render(indent = 2)
3030

31-
def getDiagnosticsIpcMiniElp(modulesAndStorages: Iterable[(String, DbApi.AstStorage)]): Unit =
31+
def getDiagnosticsIpc(modulesAndStorages: Iterable[(String, DbApi.AstStorage)]): Unit =
3232
try {
3333
val diagnosticsByModule = mutable.Map.empty[String, List[Error]]
3434
for { (module, astStorage) <- modulesAndStorages } {
@@ -44,7 +44,7 @@ object ELPDiagnostics {
4444
case Ipc.Terminated => ()
4545
}
4646

47-
def getDiagnosticsIpc(modulesAndStorages: Iterable[(String, DbApi.AstStorage)]): Unit =
47+
def getDiagnosticsIpcShell(modulesAndStorages: Iterable[(String, DbApi.AstStorage)]): Unit =
4848
try {
4949
for { (module, astStorage) <- modulesAndStorages } {
5050
if (Ipc.shouldEqwalize(module)) {

0 commit comments

Comments
 (0)