Skip to content

Commit 68614db

Browse files
committed
🧹
1 parent d51e3f5 commit 68614db

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

coderd/workspaces.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ func (api *API) watchWorkspace(rw http.ResponseWriter, r *http.Request) {
13431343
<-senderClosed
13441344
}()
13451345

1346-
sendUpdate := func(_ context.Context, description []byte) {
1346+
sendUpdate := func(_ context.Context, _ []byte) {
13471347
workspace, err := api.Database.GetWorkspaceByID(ctx, workspace.ID)
13481348
if err != nil {
13491349
_ = sendEvent(ctx, codersdk.ServerSentEvent{

codersdk/serversentevents.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ type ServerSentEvent struct {
2020
type ServerSentEventType string
2121

2222
const (
23-
ServerSentEventTypePing ServerSentEventType = "ping"
24-
ServerSentEventTypeData ServerSentEventType = "data"
25-
ServerSentEventTypePartial ServerSentEventType = "partial"
26-
ServerSentEventTypeError ServerSentEventType = "error"
23+
ServerSentEventTypePing ServerSentEventType = "ping"
24+
ServerSentEventTypeData ServerSentEventType = "data"
25+
ServerSentEventTypeError ServerSentEventType = "error"
2726
)
2827

2928
func ServerSentEventReader(ctx context.Context, rc io.ReadCloser) func() (*ServerSentEvent, error) {

site/src/pages/WorkspacePage/WorkspacePage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { type FC, useEffect } from "react";
22
import { useQuery, useQueryClient } from "react-query";
33
import { useParams } from "react-router-dom";
4-
import merge from "lodash/merge";
54
import { watchWorkspace } from "api/api";
65
import type { Workspace } from "api/typesGenerated";
76
import { workspaceBuildsKey } from "api/queries/workspaceBuilds";

0 commit comments

Comments
 (0)