Skip to content

Commit

Permalink
fix: 检查文件的interval时间忘了改回来了
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Mar 28, 2024
1 parent 2899f27 commit dec6fe5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export async function bootstrap(version: string): Promise<void> {

checkFileInterval = setTimeout(() => {
void checkFile(files)
}, ms('10s'))
}, ms('10m'))
} catch (e) {
logger.fatal(e)
if (process.env.NODE_ENV === 'development') {
Expand All @@ -87,7 +87,7 @@ export async function bootstrap(version: string): Promise<void> {
console.error('check file error')
console.error(e)
})
}, ms('10s'))
}, ms('10m'))
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import http2Express from 'http2-express-bridge'
import {clone, template, toString} from 'lodash-es'
import morgan from 'morgan'
import ms from 'ms'
import {constants} from 'node:http2'
import {userInfo} from 'node:os'
import {clearTimeout} from 'node:timers'
import {tmpdir} from 'os'
Expand Down Expand Up @@ -131,7 +132,7 @@ export class Cluster {
lastModified,
},
})
if (res.statusCode === 304) {
if (res.statusCode === constants.HTTP_STATUS_NO_CONTENT) {
return {
files: [],
}
Expand Down

0 comments on commit dec6fe5

Please sign in to comment.