comparison app/models/tweet.rb @ 221:545ce38ef3d6

Remove copied off client_options (to Clients)
author nanaya <me@nanaya.pro>
date Thu, 27 May 2021 02:31:59 +0900
parents 0e15b4db2da8
children
comparison
equal deleted inserted replaced
220:0e15b4db2da8 221:545ce38ef3d6
6 :tweet_mode => :extended, 6 :tweet_mode => :extended,
7 } 7 }
8 8
9 def self.cache_expires_time 9 def self.cache_expires_time
10 (15 + rand(15)).minutes 10 (15 + rand(15)).minutes
11 end
12
13 def self.client_options(id)
14 {
15 :timeouts => {
16 :connect => 5,
17 :read => 5,
18 :write => 5,
19 },
20 }.merge $cfg[:twitter][id]
21 end 11 end
22 12
23 def initialize(twitter_id) 13 def initialize(twitter_id)
24 @twitter_id = twitter_id 14 @twitter_id = twitter_id
25 end 15 end