Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
comment and ttl trans
Browse files Browse the repository at this point in the history
  • Loading branch information
einxie authored and pmazzini committed Jun 11, 2020
1 parent 252464f commit 931cf0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ func (c *Conn) CreateTTL(path string, data []byte, flags int32, acl []ACL, ttl t
}

res := &createResponse{}
_, err := c.request(opCreateTTL, &CreateTTLRequest{path, data, acl, flags, ttl.Nanoseconds() / 1e6}, res, nil)
_, err := c.request(opCreateTTL, &CreateTTLRequest{path, data, acl, flags, int64(ttl / time.Millisecond)}, res, nil)
return res.Path, err
}

Expand Down
2 changes: 1 addition & 1 deletion structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ type CreateTTLRequest struct {
Data []byte
Acl []ACL
Flags int32
Ttl int64
Ttl int64 // ms
}

type createResponse pathResponse
Expand Down

0 comments on commit 931cf0d

Please sign in to comment.