Skip to content

Commit 10459ef

Browse files
committed
Fix typo and rename method
1 parent 825f8fe commit 10459ef

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/core/federation.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,12 @@ function isANodeJSCodedError(e: Error): e is NodeJSCodedError {
292292
* A network sender is a reactor containing a portAbsentReaction.
293293
*/
294294
export class NetworkSender extends Reactor {
295+
295296
/**
296-
* The last reaction of a NetworkSender reactor is 'portAbsentReactor'.
297-
* @returns portAbsentReactor of this NetworkSender reactor
297+
* The last reaction of a NetworkSender reactor is the "port absent" reaction.
298+
* @returns the "port absent" of this reactor
298299
*/
299-
public getLastReactionOrMutation(): Reaction<Variable[]> | undefined {
300+
public getPortAbsentReaction(): Reaction<Variable[]> | undefined {
300301
return this._getLastReactionOrMutation();
301302
}
302303
}
@@ -1454,7 +1455,7 @@ export class FederatedApp extends App {
14541455
public registerNetworkSender(networkSender: NetworkSender): void {
14551456
this.networkSenders.push(networkSender);
14561457

1457-
const portAbsentReaction = networkSender.getLastReactionOrMutation();
1458+
const portAbsentReaction = networkSender.getPortAbsentReaction();
14581459
if (portAbsentReaction !== undefined) {
14591460
this.portAbsentReactions.add(portAbsentReaction);
14601461
}

0 commit comments

Comments
 (0)