Skip to content

Commit 1094236

Browse files
authored
Merge pull request #39 from vkuznet/rishi-request
Improve unique id generator
2 parents 9f3ff93 + c33adf0 commit 1094236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/request.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func httpTransfer(c CatalogEntry, t *TransferRequest) (string, error) {
157157
func Store() Decorator {
158158
return func(r Request) Request {
159159
return RequestFunc(func(t *TransferRequest) error {
160-
t.Id = time.Now().Unix()
160+
t.Id = time.Now().UnixNano()
161161
item := &Item{
162162
Value: *t,
163163
priority: t.Priority,

0 commit comments

Comments
 (0)