Skip to content

Commit 187c3bc

Browse files
committed
ENH: reduce sleep to 0.1 for consistency
1 parent b36e630 commit 187c3bc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

facade.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import time
55

6-
SLEEP = 0.5
6+
SLEEP = 0.1
77

88

99
# Complex Parts

proxy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ def talk(self):
1818
print("Proxy checking for Sales Manager availability")
1919
if self.busy == 'No':
2020
self.sales = SalesManager()
21-
time.sleep(2)
21+
time.sleep(0.1)
2222
self.sales.talk()
2323
else:
24-
time.sleep(2)
24+
time.sleep(0.1)
2525
print("Sales Manager is busy")
2626

2727

2828
class NoTalkProxy(Proxy):
2929
def talk(self):
3030
print("Proxy checking for Sales Manager availability")
31-
time.sleep(2)
31+
time.sleep(0.1)
3232
print("This Sales Manager will not talk to you whether he/she is busy or not")
3333

3434

0 commit comments

Comments
 (0)