mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: rename client Listen to ConnectRPC (#11916)
ConnectRPC seems more appropriate for this function
This commit is contained in:
@@ -99,7 +99,7 @@ func (c *Client) Close() {
|
||||
c.derpMapOnce.Do(func() { close(c.derpMapUpdates) })
|
||||
}
|
||||
|
||||
func (c *Client) Listen(ctx context.Context) (drpc.Conn, error) {
|
||||
func (c *Client) ConnectRPC(ctx context.Context) (drpc.Conn, error) {
|
||||
conn, lis := drpcsdk.MemTransportPipe()
|
||||
c.LastWorkspaceAgent = func() {
|
||||
_ = conn.Close()
|
||||
|
||||
Reference in New Issue
Block a user