Some people are good for your success, some can hinder it. You should limit the amount of time you spend with the latter.
If you want to succeed, it's vital to surround yourself with people who help you and won't inhibit your growth.
You need people who can support you, even when things get bad, so don’t waste your time hanging out with people who are angry all the time. Do you know people who belong to one of following categories?