MCPcopy Create free account
hub / github.com/ambianic/peerfetch / _saveConfig

Function _saveConfig

python/src/peerfetch/proxy.py:130–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128
129
130def _saveConfig():
131 global config
132 cfg1 = config.copy()
133 if 'peerId' in cfg1.keys():
134 del cfg1["peerId"]
135 with open(CONFIG_FILE, 'w') as outfile:
136 yaml.dump(cfg1, outfile)
137
138def _setPnPServiceConnectionHandlers(peer=None):
139 assert peer

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected