fix formatting in persistence/stdout.go

This commit is contained in:
Bora M. Alper 2019-09-18 02:05:29 +01:00
parent f2edd2499a
commit c310d993bb
No known key found for this signature in database
GPG Key ID: 8F1A9504E1BD114D

View File

@ -10,8 +10,8 @@ import (
type out struct {
InfoHash []byte `json:"infoHash"`
Name string `json:"name"`
Files []File `json:"files"`
Name string `json:"name"`
Files []File `json:"files"`
}
var notSupportedError = errors.New("This dummy database engine (\"stdout\") does not support any sort of queries")
@ -40,10 +40,10 @@ func (s *stdout) DoesTorrentExist(infoHash []byte) (bool, error) {
}
func (s *stdout) AddNewTorrent(infoHash []byte, name string, files []File) error {
err := s.encoder.Encode(out {
err := s.encoder.Encode(out{
InfoHash: infoHash,
Name: name,
Files: files,
Name: name,
Files: files,
})
if err != nil {
return errors.Wrap(err, "DB engine stdout encode error")