summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-10-10 17:21:10 +0200
committernsensfel <SpamShield0@noot-noot.org>2018-10-10 17:21:10 +0200
commitbd1f3d6aaaaf14d6bb0ef6d18cbfb1a149d727dc (patch)
tree61da130e46771e413eb436081ade78b2b220cae9 /src/map
parent69c0a530f82c8158da454ee0e10678dd417f1533 (diff)
(Broken) Working on DB item ID generation...
Diffstat (limited to 'src/map')
-rw-r--r--src/map/map_handler.erl24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/map/map_handler.erl b/src/map/map_handler.erl
index e4bcb60..eb19e18 100644
--- a/src/map/map_handler.erl
+++ b/src/map/map_handler.erl
@@ -18,29 +18,5 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-spec start (pid()) -> 'ok'.
start (TimedCachesManagerPid) ->
- case shr_database:fetch(map_db, <<"0">>, admin) of
- {ok, _} -> ok;
- not_found ->
- shr_database:insert_at
- (
- map_db,
- <<"0">>,
- any,
- any,
- map_shim:generate_random_map(0, <<"0">>)
- )
- end,
- case shr_database:fetch(map_db, <<"1">>, admin) of
- {ok, _} -> ok;
- not_found ->
- shr_database:insert_at
- (
- map_db,
- <<"1">>,
- any,
- any,
- map_shim:generate_random_map(1, <<"1">>)
- )
- end,
shr_timed_caches_manager:new_cache(TimedCachesManagerPid, map_db, none),
ok.