summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2020-08-23 20:02:25 -0400
committerHubert Chathi <hubert@uhoreg.ca>2020-08-23 20:02:25 -0400
commit6f182e412013c3275b0a78b4636a3fed3a43da24 (patch)
treef5f44bf52945ca704795c990628187204fc1a9e0
parentremember access token, user ID, and device ID in storage (diff)
minor fixes
-rw-r--r--lib/polyjuice/client/low_level.ex4
-rw-r--r--lib/polyjuice/client/storage.ex2
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/polyjuice/client/low_level.ex b/lib/polyjuice/client/low_level.ex
index d04f798..918805e 100644
--- a/lib/polyjuice/client/low_level.ex
+++ b/lib/polyjuice/client/low_level.ex
@@ -23,6 +23,10 @@ defmodule Polyjuice.Client.LowLevel do
- does not provide a process for syncing with the server
- does not ensure that room requests (such as sending messages) are run in a
queue
+ - does not start any processes
+
+ This module would be suitable, for example, for a bot that only sends messages
+ and does not respond to messages.
"""
require Logger
diff --git a/lib/polyjuice/client/storage.ex b/lib/polyjuice/client/storage.ex
index a44e53b..6169474 100644
--- a/lib/polyjuice/client/storage.ex
+++ b/lib/polyjuice/client/storage.ex
@@ -33,7 +33,7 @@ defprotocol Polyjuice.Client.Storage do
@doc """
Close the storage.
"""
- @spec get_sync_token(storage :: __MODULE__.t()) :: any
+ @spec close(storage :: __MODULE__.t()) :: any
def close(storage)
@doc """