Skip to content

Commit da5f835

Browse files
einxiepmazzini
authored andcommitted
convert ttl's type
1 parent feca69d commit da5f835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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, int64(ttl / time.Millisecond)}, res, nil)
1080+
_, err := c.request(opCreateTTL, &CreateTTLRequest{path, data, acl, flags, ttl.Milliseconds()}, res, nil)
10811081
return res.Path, err
10821082
}
10831083

0 commit comments

Comments
 (0)