Skip to content

Commit ba048b0

Browse files
committed
remove prints
1 parent 27f2df8 commit ba048b0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

coderd/coderd.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -797,10 +797,10 @@ func New(options *Options) *API {
797797
// browsers, so these don't make sense on api routes.
798798
cspMW := httpmw.CSPHeaders(func() []string {
799799
if f := api.HealthyWorkspaceProxyHosts.Load(); f != nil {
800-
// By default we do not add extra websocket connections to the CSP
801-
return []string{}
800+
return (*f)()
802801
}
803-
return nil
802+
// By default we do not add extra websocket connections to the CSP
803+
return []string{}
804804
})
805805
r.NotFound(cspMW(compressHandler(http.HandlerFunc(api.siteHandler.ServeHTTP))).ServeHTTP)
806806
return api

enterprise/coderd/proxyhealth/proxyhealth.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ func (p *ProxyHealth) storeProxyHealth(statuses map[uuid.UUID]ProxyStatus) {
150150
}
151151
}
152152

153-
fmt.Println("healthyHosts", healthyHosts)
154153
// Store the statuses in the cache before any other quick values.
155154
p.cache.Store(&statuses)
156155
p.heathyHosts.Store(&healthyHosts)

0 commit comments

Comments
 (0)