Skip to content

Commit

Permalink
added clarification on the return type for a router
Browse files Browse the repository at this point in the history
  • Loading branch information
NorthIsUp committed Feb 17, 2012
1 parent 855ac55 commit fac1b0f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nydus/db/routers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ class BaseRouter(object):
retryable = False

def get_db(self, cluster, func, *args, **kwargs):
"""Return the first entry in the cluster"""
"""
Return the first entry in the cluster
The return value must be iterable
"""
return range(len(cluster))

0 comments on commit fac1b0f

Please sign in to comment.