Hastings Leisure centre receives funding to combat rising costs