Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit68614db

Browse files
committed
🧹
1 parentd51e3f5 commit68614db

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
iferr!=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
typeServerSentEventTypestring
2121

2222
const (
23-
ServerSentEventTypePingServerSentEventType="ping"
24-
ServerSentEventTypeDataServerSentEventType="data"
25-
ServerSentEventTypePartialServerSentEventType="partial"
26-
ServerSentEventTypeErrorServerSentEventType="error"
23+
ServerSentEventTypePingServerSentEventType="ping"
24+
ServerSentEventTypeDataServerSentEventType="data"
25+
ServerSentEventTypeErrorServerSentEventType="error"
2726
)
2827

2928
funcServerSentEventReader(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{typeFC,useEffect}from"react";
22
import{useQuery,useQueryClient}from"react-query";
33
import{useParams}from"react-router-dom";
4-
importmergefrom"lodash/merge";
54
import{watchWorkspace}from"api/api";
65
importtype{Workspace}from"api/typesGenerated";
76
import{workspaceBuildsKey}from"api/queries/workspaceBuilds";

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp