summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/io')
-rw-r--r--src/shared/io/sh_database.erl2
-rw-r--r--src/shared/io/sh_timed_cache.erl2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/io/sh_database.erl b/src/shared/io/sh_database.erl
index a65b784..5fa791f 100644
--- a/src/shared/io/sh_database.erl
+++ b/src/shared/io/sh_database.erl
@@ -130,7 +130,7 @@ fetch (DB, ObjectID) ->
io:format("~ndb_shim:fetch(~p) -> ~p.~n", [{DB, ObjectID}, Reply]),
Reply.
--spec commit (db_query:type()) -> 'ok'.
+-spec commit (sh_db_query:type()) -> 'ok'.
commit (Query) ->
{atomic, ok} = rpc:call(get_db_node(), storage_access, query, [Query]),
io:format("~ndb_shim:commit(~p) -> ok.~n", [Query]),
diff --git a/src/shared/io/sh_timed_cache.erl b/src/shared/io/sh_timed_cache.erl
index de2f409..6f3d973 100644
--- a/src/shared/io/sh_timed_cache.erl
+++ b/src/shared/io/sh_timed_cache.erl
@@ -37,7 +37,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-spec add_to_cache (atom(), any(), any()) -> any().
add_to_cache (DB, Owner, ObjectID) ->
- {ok, TimerPID} = sh_gen_server:start(?MODULE, {DB, {Owner, ObjectID}}, []),
+ {ok, TimerPID} = gen_server:start(?MODULE, {DB, {Owner, ObjectID}}, []),
{ok, Data} = sh_database:fetch(DB, ObjectID),
ets:insert(DB, {{Owner, ObjectID}, TimerPID, Data}),
Data.