Page MenuHomePhabricator

[lib] refactor methods from `PeerToPeerContext` to utils
ClosedPublic

Authored by kamil on Wed, Sep 18, 5:09 AM.
Tags
None
Referenced Files
F2759933: D13374.id.diff
Thu, Sep 19, 5:53 AM
F2758232: D13374.diff
Thu, Sep 19, 3:38 AM
F2757621: D13374.id.diff
Thu, Sep 19, 2:52 AM
F2753726: D13374.id44292.diff
Wed, Sep 18, 6:11 PM
F2753707: D13374.id.diff
Wed, Sep 18, 6:10 PM
F2753688: D13374.diff
Wed, Sep 18, 6:10 PM
Subscribers

Details

Summary

ENG-9106.

The code in Context is messy and complicated, moving this to methods to make it clean. See usages in next diff - I am going to link source code from Githb to make it easier for review.

Depends on D13373

Test Plan

Tested in D13376

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
lib/utils/peer-to-peer-communication-utils.js
22–61 ↗(On Diff #44292)

code here

63–92 ↗(On Diff #44292)

code here and here

94–134 ↗(On Diff #44292)

code here but most of it is already extracted to functions above

136–182 ↗(On Diff #44292)

code here and here.

kamil published this revision for review.Wed, Sep 18, 5:43 AM
kamil edited the test plan for this revision. (Show Details)
tomek added inline comments.
lib/utils/peer-to-peer-communication-utils.js
7–10 ↗(On Diff #44292)

Can be merged

This revision is now accepted and ready to land.Wed, Sep 18, 10:55 PM