Skip to content

Commit

Permalink
fix issue writing initially the encryption token
Browse files Browse the repository at this point in the history
  • Loading branch information
cre4ture committed Sep 24, 2024
1 parent 421925a commit 7c6a078
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/model/folder_virtual.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"context"
"encoding/json"
"io"
"io/fs"
"log"
"os"
"strings"
Expand Down Expand Up @@ -287,7 +288,7 @@ func (vf *virtualFolderSyncthingService) GetHashBlockData(hash []byte, response_
func (f *virtualFolderSyncthingService) ReadEncryptionToken() ([]byte, error) {
data, ok := f.blockCache.GetMeta(config.EncryptionTokenName)
if !ok {
return nil, protocol.ErrNoSuchFile
return nil, fs.ErrNotExist
}
dataBuf := bytes.NewBuffer(data)
var stored storedEncryptionToken
Expand Down

0 comments on commit 7c6a078

Please sign in to comment.