John Millman has won his second tour-level match of 2021 at the Sardinia Open - but it wasn't easy.