davebshow / goblin

A Python 3.5 rewrite of the TinkerPop 3 OGM Goblin
Other
93 stars 21 forks source link

About the app config #71

Closed StanYaha closed 7 years ago

StanYaha commented 7 years ago

It's my code

loop = asyncio.get_event_loop()
app = loop.run_until_complete(Goblin.open(loop,
    get_hashable_id=get_hashable_id))
app.config_from_file('config.yaml')
loop.run_until_complete(gen_jane(app))

In my code, i want to update my config, but i cant't update the config. It seems always use the default config. Because when i make the port:123456, it did not report error. Please test it and check it.It may be a bug.Thank you!

StanYaha commented 7 years ago

I am sorry. It seems that

app.config_from_file('config.yaml')

is not the Goblin classmethod but the Cluster classmethod!