Skip to content

Commit

Permalink
do not close the channel
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxkad committed Dec 16, 2023
1 parent 17e91f8 commit 7574f3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/dashboard/src/config/pwa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ import { VitePWA } from 'vite-plugin-pwa'
export default VitePWA({
registerType: 'autoUpdate',
injectRegister: 'inline',
workbox: {
globPatterns: ['**/*.{js,css,html,ico,png,svg}'],
},
includeAssets: ['favicon.ico', 'apple-touch-icon.png'],
includeAssets: ['favicon.ico'],
manifest: {
name: 'GoOpemBmclApi Dashboard',
short_name: 'GoOpemBmclApiDashboard',
Expand Down Expand Up @@ -37,4 +34,7 @@ export default VitePWA({
},
],
},
workbox: {
globPatterns: ['**/*.{js,css,html,ico,png,svg,woff2}'],
},
})
1 change: 0 additions & 1 deletion src/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ func (cr *Cluster) GetHandler() (handler http.Handler) {
}
})
go func() {
defer close(totalUsedCh)
<-cr.WaitForEnable()
disabled := cr.Disabled()
var (
Expand Down

0 comments on commit 7574f3d

Please sign in to comment.