A similar pattern in the UK, bar the war.
There was use of military force to suppress the slave trade but not actual war https://en.wikipedia.org/wiki/West_Africa_Squadron