Skip to content

Commit 931cf0d

Browse files
einxiepmazzini
authored andcommitted
comment and ttl trans
1 parent 252464f commit 931cf0d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

conn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ func (c *Conn) CreateTTL(path string, data []byte, flags int32, acl []ACL, ttl t
10771077
}
10781078

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

structs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ type CreateTTLRequest struct {
172172
Data []byte
173173
Acl []ACL
174174
Flags int32
175-
Ttl int64
175+
Ttl int64 // ms
176176
}
177177

178178
type createResponse pathResponse

0 commit comments

Comments
 (0)