Is that wrong that I gave my number to a guy even though I have a boyfriend?

We’ve been together for a few years now. The relationship is stable, but lately, it’s been a bit emotionally dull.
The other day, I had a casual but genuinely enjoyable conversation with a guy I met at a café. There was some mutual interest, and I ended up giving him my number.
Now I keep wondering was that disrespectful to my partner? I’m not planning to do anything with this guy, but I can’t help feeling like I crossed a line.
Is this just harmless interaction, or would you see it as a form of emotional cheating?

Is that wrong that I gave my number to a guy even though I have a boyfriend?
Post Opinion