Browse Source

squelch pointless message

ebf201903251154
erinn 1 year ago
parent
commit
5ece75b3a8
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      storage/stream_store.go

+ 2
- 5
storage/stream_store.go View File

@@ -54,13 +54,10 @@ func (ss *streamStore) initBuffer() {
func (ss *streamStore) initBufferFromStorage() error {
filename := fmt.Sprintf("%s.%d", ss.filenameBase, 0)

bytes, err := readEncryptedFile(ss.storeDirectory, filename, ss.password)
if err != nil {
log.Debugf("Failed to read encrypted file: %v", err)
}
bytes, _ := readEncryptedFile(ss.storeDirectory, filename, ss.password)

msgs := []model.Message{}
err = json.Unmarshal([]byte(bytes), &msgs)
err := json.Unmarshal([]byte(bytes), &msgs)
if err != nil {
log.Debugf("failed to init buffer from storage: %v", err)
return err


Loading…
Cancel
Save