Skip to content

Commit 4a87c06

Browse files
committed
remove useless code
1 parent a720018 commit 4a87c06

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

components/supervisor/pkg/ports/ports.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ func NewManager(exposed ExposedPortsInterface, served ServedPortsObserver, confi
4545
C: config,
4646
T: tunneled,
4747

48-
forceUpdates: make(chan struct{}, 1),
49-
closeSubscriptions: make(chan *Subscription, maxSubscriptions*2),
48+
forceUpdates: make(chan struct{}, 1),
5049

5150
internal: internal,
5251
proxies: make(map[uint32]*localhostProxy),
@@ -81,8 +80,7 @@ type Manager struct {
8180
C ConfigInterace
8281
T TunneledPortsInterface
8382

84-
forceUpdates chan struct{}
85-
closeSubscriptions chan *Subscription
83+
forceUpdates chan struct{}
8684

8785
internal map[uint32]struct{}
8886
proxies map[uint32]*localhostProxy

0 commit comments

Comments
 (0)