]> 127.0.0.1 Git - part/.git/commitdiff
Improve v0.23.8
authorqydysky <32743305+qydysky@users.noreply.github.com>
Sat, 4 Mar 2023 09:23:17 +0000 (17:23 +0800)
committerqydysky <32743305+qydysky@users.noreply.github.com>
Sat, 4 Mar 2023 09:23:17 +0000 (17:23 +0800)
file/FileWR.go
websocket/Recoder.go

index f60340c0a0d2afc4ab8d735ab9d4a6d263d70de2..367242175065a11e2a5af64845e7a3376ddb6b24 100644 (file)
@@ -235,7 +235,7 @@ func (t *File) Sync() (e error) {
        return t.file.Sync()
 }
 
-func (t *File) Create(tryLock bool) {
+func (t *File) Create() {
        t.getRWCloser()
        if t.Config.AutoClose {
                defer t.Close()
index 9b66d95ab70a16c644938f6098e27157d80ae965..31abe15853921b24f3ca715b26dab805a41e2867 100644 (file)
@@ -42,6 +42,7 @@ func (t *Recorder) Start(filePath string) error {
        if f.IsExist() {
                return ErrIsExist
        }
+       f.Create()
 
        go func() {
                defer f.Close()