diff --git a/internal/client/proto.go b/internal/client/proto.go index 13cd5fa12b9e3f29e1cceb61696d695366cbf133..f444cfc04f1e185a4551d6ac43eae4d99f3a02ba 100644 --- a/internal/client/proto.go +++ b/internal/client/proto.go @@ -87,6 +87,7 @@ func (c *Client) DeleteWorkspace(ctx context.Context, id string) error { // SubscribeEvents subscribes to server-sent events for a workspace. func (c *Client) SubscribeEvents(ctx context.Context, id string) (<-chan any, error) { events := make(chan any, 100) + //nolint:bodyclose rsp, err := c.get(ctx, fmt.Sprintf("/workspaces/%s/events", id), nil, http.Header{ "Accept": []string{"text/event-stream"}, "Cache-Control": []string{"no-cache"}, diff --git a/internal/server/net_other.go b/internal/server/net_other.go index b1fba90cf306b45c5764eb3702d2da642122ca69..1ef7066c13abc1ab94494641d29449823ea8dd15 100644 --- a/internal/server/net_other.go +++ b/internal/server/net_other.go @@ -6,5 +6,6 @@ package server import "net" func listen(network, address string) (net.Listener, error) { + //nolint:noctx return net.Listen(network, address) }