Skip to content

Commit

Permalink
prettify docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wasimusu committed Jul 2, 2020
1 parent ae3a317 commit faf0417
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions distcache/cache_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def __init__(self, capacity=100):
def register(self):
"""
Just try connecting to the server. And it will register you.
:return: client_id
:returns: client_id
"""
self.client_socket.connect(self.server_address)
print("Client connected at address {}:{}".format(*self.server_address))
Expand All @@ -58,7 +59,7 @@ def monitor(self):
The server can request you to store key, value pair
The server can request you to delete key from cache
:return:None
:returns: None
"""
print("Monitoring queries from server and responding...")
self.client_socket.settimeout(30) # TODO: Increasing timeout is not the solution.
Expand Down

0 comments on commit faf0417

Please sign in to comment.