There was use of military force to suppress the slave trade but not actual war https://en.wikipedia.org/wiki/West_Africa_Squadron