Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3489270
D6688.id22994.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D6688.id22994.diff
View Options
diff --git a/keyserver/src/creators/message-creator.js b/keyserver/src/creators/message-creator.js
--- a/keyserver/src/creators/message-creator.js
+++ b/keyserver/src/creators/message-creator.js
@@ -475,14 +475,14 @@
const [pushInfo] = await Promise.all([
promiseAll(userPushInfoPromises),
createReadStatusUpdates(latestMessages),
- redisPublish(viewer, messageInfosPerUser, updatesForCurrentSession),
+ messageBrokerPublish(viewer, messageInfosPerUser, updatesForCurrentSession),
updateLatestMessages(latestMessages),
]);
await sendPushNotifs(_pickBy(Boolean)(pushInfo));
}
-async function redisPublish(
+async function messageBrokerPublish(
viewer: Viewer,
messageInfosPerUser: { [userID: string]: $ReadOnlyArray<RawMessageInfo> },
updatesForCurrentSession: UpdatesForCurrentSession,
diff --git a/keyserver/src/creators/update-creator.js b/keyserver/src/creators/update-creator.js
--- a/keyserver/src/creators/update-creator.js
+++ b/keyserver/src/creators/update-creator.js
@@ -378,7 +378,10 @@
}
if (publishInfos.size > 0) {
- promises.redis = redisPublish(publishInfos.values(), dontBroadcastSession);
+ promises.messageBroker = messageBrokerPublish(
+ publishInfos.values(),
+ dontBroadcastSession,
+ );
}
if (deleteSQLConditions.length > 0) {
@@ -713,7 +716,7 @@
updateTarget: UpdateTarget,
rawUpdateInfos: RawUpdateInfo[],
};
-async function redisPublish(
+async function messageBrokerPublish(
publishInfos: Iterator<PublishInfo>,
dontBroadcastSession: ?string,
): Promise<void> {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 12:02 PM (20 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2676681
Default Alt Text
D6688.id22994.diff (1 KB)
Attached To
Mode
D6688: [keyserver] Refactoring `redisPublish` function to `messageBrokerPublish`
Attached
Detach File
Event Timeline
Log In to Comment