I mean it is unrelated to the Electrum script. I believe Electrs disable the Electrum Server peer discovery protocol by default, so you don't have to worry. I just trying to say that Electrs is not suitable for public server as noted on their readme. Another relevant discussion can be seen at
https://github.com/romanz/electrs/issues/187.
Or this explanation also could tell why it's unsuitable due to how its design:
As can be seen from the Electrs database schema, only the block height for an address is stored. To be more specific, the ScriptPubKey is hashed and the first 8 bytes of this ‘script hash’ are stored as a key where the value is the confirmed block height for a transaction associated with that script hash. This means that block must be retrieved from Bitcoin Core using the P2P interface and parsed for transactions that have outputs matching the address. For a deep wallet such as that used in this test, this can be a lot of data that must be reparsed for every wallet load. For this particular wallet, 3.5GB of blocks needed to be fetched from Bitcoin Core and parsed every time the wallet is loaded!