lib/yahns/client_expire_generic.rb in yahns-1.5.0 vs lib/yahns/client_expire_generic.rb in yahns-1.6.0
- old
+ new
@@ -1,9 +1,9 @@
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
module Yahns::ClientExpireGeneric # :nodoc:
def __timestamp
- Time.now.to_f
+ Yahns.now
end
def yahns_init
super # Yahns::HttpClient#yahns_init
@last_io_at = 0