Engine reviving extremely high on ignition

It was running fine before drove my friend around because the engine swap was recently finished stepped on it at one point and it stayed revving high in neutral nothing purposeful was changed