Skip to content

Commit

Permalink
dependency on psutil removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Minyushkin authored Apr 23, 2018
1 parent 0267a0c commit 00a38d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pubsub/google/cloud/pubsub_v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from __future__ import absolute_import
import collections
import psutil

import sys

from google.api_core.protobuf_helpers import get_messages
Expand Down Expand Up @@ -58,7 +58,8 @@
'max_lease_duration'],
)
FlowControl.__new__.__defaults__ = (
psutil.virtual_memory().total * 0.2, # max_bytes: 20% of total RAM
#psutil.virtual_memory().total * 0.2, # max_bytes: 20% of total RAM
1024 * 1024 * 10, # dependency on psutil removed to to fix https://github.com/GoogleCloudPlatform/google-cloud-python/issues/3892
float('inf'), # max_messages: no limit
0.8, # resume_threshold: 80%
100, # max_requests: 100
Expand Down

0 comments on commit 00a38d4

Please sign in to comment.