Heroin and cocaine with a street value of £2,440 were found at the home of a Norton man during a police raid, a court heard.
Michael James Thornton, of Commercial Street, who was appearing before York Crown Court for sentencing on Friday, had previously admitted to dealing drugs on behalf of another dealer in order to settle his own debts.
The 36-year-old faced one charge each of possession of heroin and cocaine with intent to supply them and one charge each of supplying the drugs.
He was jailed for two years, the court hearing that he had previous convictions for drug- related offending.
Recorder Amanda Rippon was told that Thornton had been dealing up to £300 worth of the drugs per day, although not every day.
Andrew Semple, mitigating, said that Thornton’s life had been one of yo-yoing between abstinence and working and then periods of falling back into drug use.
Having successfully completed a drug rehabilitation programme, Thornton had then lost his agency job and again met up with old associates who persuaded him to deal the drugs to help him out of his financial troubles.
Passing sentence, recorder Amanda Rippon told Thornton: “You are 36 and you have got to start sorting yourself out.”