Skip to content

Commit

Permalink
Merge pull request #33 from Storj/height-ping
Browse files Browse the repository at this point in the history
Make Height Change Also Be A Valid Ping
  • Loading branch information
super3 committed Aug 14, 2015
2 parents 68ae2de + 3c91645 commit e92c832
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dataserv/Farmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def set_height(self, height):
"""Set the farmers advertised height."""
self.validate()

self.ping() # also serves as a valid ping
farmer = self.lookup()
farmer.height = height
db.session.commit()
Expand Down

0 comments on commit e92c832

Please sign in to comment.