Hard to say what to do without some details about what is wrong beyond "going".
If it is a basic cup & cone hub, then it should be easy enough to rebuild. Races can take a lot of abuse. Cones can be replaced. Freehubs can be replaced.
A couple bucks worth of parts, and you're back on the road, good as new.