mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
README license, copyright cleanup, etc
This commit is contained in:
@@ -51,6 +51,7 @@ func parseInt64(d []byte) (n int64) {
|
||||
return n
|
||||
}
|
||||
|
||||
// Helper to move from float seconds to time.Duration
|
||||
func secondsToDuration(seconds float64) time.Duration {
|
||||
ttl := seconds * float64(time.Second)
|
||||
return time.Duration(ttl)
|
||||
|
||||
Reference in New Issue
Block a user