Skip to content

Commit

Permalink
(*)fix #1
Browse files Browse the repository at this point in the history
  • Loading branch information
missdeer committed Aug 12, 2018
1 parent c2be7a5 commit 8eb1faa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dlutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"sync/atomic"

"github.com/dfordsoft/golib/ebook"
"github.com/satori/go.uuid"
"github.com/google/uuid"
"golang.org/x/sync/semaphore"
)

Expand Down Expand Up @@ -57,7 +57,7 @@ func newDownloadUtil(dl func(string) []byte, generator ebook.IBook) (du *downloa
du.endContent = &contentUtil{title: opts.ToTitle}
}
var err error
du.tempDir, err = ioutil.TempDir("", uuid.Must(uuid.NewV4()).String())
du.tempDir, err = ioutil.TempDir("", uuid.New().String())
if err != nil {
log.Fatal("creating temporary directory failed", err)
}
Expand Down

0 comments on commit 8eb1faa

Please sign in to comment.