The interface code (currently at https://github.com/tytus-kurek/charm-interface-endpoint/blob/master/provides.py) probably ought to use the data_changed() helper to stop it attempting to set the same data over and over again (an unfortunate consequence of charms.reactive and how handlers are always run when true, regardless of the hook).
The interface code (currently at https:/ /github. com/tytus- kurek/charm- interface- endpoint/ blob/master/ provides. py) probably ought to use the data_changed() helper to stop it attempting to set the same data over and over again (an unfortunate consequence of charms.reactive and how handlers are always run when true, regardless of the hook).
e.g.
from charms. reactive. helpers import data_changed
def expose_ endpoint( self, endpoint):
relation_ info = {
'endpoint' : endpoint, 'expose_ endpoint' , relation_info):
self. set_local( **relation_ info)
self. set_remote( **relation_ info)
}
if data_changed(
It's also not clear why the local data is being set?