influxdb-async_queue 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/lib/influxdb/async_queue/server.rb +5 -2
 - data/lib/influxdb/async_queue/version.rb +1 -1
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 715e3011cc267a33cec61ab4b51fac219a426557
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 504ddd6deaa8d476b6d289c636b3e4361088d999
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 296909332d9904a884fcb8bf15d44205c7b31593af5471c879e2e6ec214502cc59c4a83382515d92facd0c1303c53deb893171a7af90bfe8ed14b50e1e095c3b
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: baa2c745fbf8292eaff896cb74694c63c3bff782d0941461c4893fa49fcca20fc9c49c4ed614de6483921e17e804c598617828c0c968d1a96aebaa7904f6c53c
         
     | 
| 
         @@ -24,7 +24,7 @@ module InfluxDB 
     | 
|
| 
       24 
24 
     | 
    
         
             
                    end
         
     | 
| 
       25 
25 
     | 
    
         
             
                  rescue Interrupt
         
     | 
| 
       26 
26 
     | 
    
         
             
                    config.logger.info('Interrupted; exit(0)'.freeze)
         
     | 
| 
       27 
     | 
    
         
            -
                    queue.push(points) if points
         
     | 
| 
      
 27 
     | 
    
         
            +
                    queue.push(*points) if points
         
     | 
| 
       28 
28 
     | 
    
         
             
                    exit(0)
         
     | 
| 
       29 
29 
     | 
    
         
             
                  end
         
     | 
| 
       30 
30 
     | 
    
         | 
| 
         @@ -46,7 +46,10 @@ module InfluxDB 
     | 
|
| 
       46 
46 
     | 
    
         
             
                    true
         
     | 
| 
       47 
47 
     | 
    
         
             
                  rescue InfluxDB::Error => e
         
     | 
| 
       48 
48 
     | 
    
         
             
                    config.logger.error(e.inspect)
         
     | 
| 
       49 
     | 
    
         
            -
                     
     | 
| 
      
 49 
     | 
    
         
            +
                    if points
         
     | 
| 
      
 50 
     | 
    
         
            +
                      queue.push(*points)
         
     | 
| 
      
 51 
     | 
    
         
            +
                      config.logger.debug(points.inspect)
         
     | 
| 
      
 52 
     | 
    
         
            +
                    end
         
     | 
| 
       50 
53 
     | 
    
         
             
                    true
         
     | 
| 
       51 
54 
     | 
    
         
             
                  rescue => e
         
     | 
| 
       52 
55 
     | 
    
         
             
                    config.logger.error(e.inspect)
         
     |