One who keeps a wharf is a depository for hire and is liable upon the same principles as a warehouseman.