Skip to content

Commit 036094f

Browse files
committed
fixup! use dedicated channels for querier subscribe and closing conns
1 parent d143d2d commit 036094f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

enterprise/tailnet/pgcoord.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ func (c *pgCoord) ServeClient(conn net.Conn, id uuid.UUID, agent uuid.UUID) erro
267267
if err := c.addSubscription(cIO, agent); err != nil {
268268
return err
269269
}
270+
defer func() { _ = c.removeSubscription(cIO, agent) }()
270271

271272
<-cIO.ctx.Done()
272273
return nil

0 commit comments

Comments
 (0)