client: Add support for the Sqlite Queue database from peewee.

This commit is contained in:
Damir Jelić 2019-07-22 16:21:54 +02:00
parent 8cf1968f53
commit 5c3753a6e1
4 changed files with 27 additions and 3 deletions

View file

@ -16,6 +16,7 @@ from nio import (
SyncResponse,
Timeline,
)
from nio.store import SqliteStore
from pantalaimon.client import PanClient
from pantalaimon.config import ServerConfig
@ -45,7 +46,8 @@ async def client(tmpdir, loop):
queue.async_q,
"@example:example.org",
"DEVICEID",
tmpdir
tmpdir,
store_class=SqliteStore
)
yield pan_client