projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Configurable and larger max message size (#146)
[osm/N2VC.git]
/
examples
/
allwatcher.py
diff --git
a/examples/allwatcher.py
b/examples/allwatcher.py
index
c215d20
..
c78d689
100644
(file)
--- a/
examples/allwatcher.py
+++ b/
examples/allwatcher.py
@@
-11,14
+11,13
@@
import asyncio
import logging
from juju.client.connection import Connection
import logging
from juju.client.connection import Connection
-from juju.client import
watcher
+from juju.client import
client
from juju import loop
async def watch():
from juju import loop
async def watch():
- allwatcher = watcher.AllWatcher()
conn = await Connection.connect_current()
conn = await Connection.connect_current()
- allwatcher
.connect
(conn)
+ allwatcher
= client.AllWatcherFacade.from_connection
(conn)
while True:
change = await allwatcher.Next()
for delta in change.deltas:
while True:
change = await allwatcher.Next()
for delta in change.deltas: