mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-30 20:31:01 +08:00
延长读写线程超时时间/增加相关测试用例
This commit is contained in:
@@ -26,6 +26,8 @@ func ReadFile(filename string) (data []byte, err error) {
|
||||
}
|
||||
|
||||
func WriteFile(filename string, data []byte, perm os.FileMode) (err error) {
|
||||
WriterLimiter.Ack()
|
||||
err = os.WriteFile(filename, data, perm)
|
||||
WriterLimiter.Release()
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user