Best time to apply for green card



Hi,
I am canadian immigrant and I will be canadian citizen after two years.
I would like to know if I apply for green card after one year and get
the canadian citizenship during my green card process, will that affect
my green card application? if yes then what would be the best time to
apply for green card?

.