Skip to content

Commit

Permalink
Merge pull request #39 from vkuznet/rishi-request
Browse files Browse the repository at this point in the history
Improve unique id generator
  • Loading branch information
vkuznet committed Aug 15, 2017
2 parents 9f3ff93 + c33adf0 commit 1094236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func httpTransfer(c CatalogEntry, t *TransferRequest) (string, error) {
func Store() Decorator {
return func(r Request) Request {
return RequestFunc(func(t *TransferRequest) error {
t.Id = time.Now().Unix()
t.Id = time.Now().UnixNano()
item := &Item{
Value: *t,
priority: t.Priority,
Expand Down

0 comments on commit 1094236

Please sign in to comment.