anchor.diff:  
   %% Comet process state
   -define(STATE, comet_state).
  --record(?STATE, {counter, spaces_details}).
  +-record(?STATE, {counter, spaces_details, workers}).
   
   -record(document, {key, rev, value, links}).
   -record(storage, {name, helpers}).
  
positive.code: %% ====================================================================
  event(init) ->
      try
          {ok, SpaceIds} = gr_providers:get_spaces(provider),
          {SpacesDetails, Counter} = lists:foldl(fun(SpaceId, {SpacesDetailsAcc, Id}) ->
              {ok, SpaceDetails} = gr_providers:get_space_details(provider, SpaceId),
  
negative.code: comet_loop({error, Reason}) ->
      {error, Reason};
  
  comet_loop(#?STATE{counter = Counter, spaces_details = SpacesDetails, workers = Workers} = State) ->
      NewState = try
          receive
              {create_space, StorageType, IsCeph, Name, Token, Size, Username, Key} ->
                  NextState =
                      try
                          RowId = <<"space_", (integer_to_binary(Counter + 1))/binary>>,
                          {ok, #token_issuer{client_type = <<"user">>, client_id = UserId}} =
                              gr_providers:get_token_issuer(provider, Token),
                          {ok, SpaceId} = gr_providers:create_space(provider,
                              [{<<"name">>, Name}, {<<"token">>, Token}, {<<"size">>, integer_to_binary(Size)}]),
                          {ok, SpaceDetails} = gr_providers:get_space_details(provider, SpaceId),
                          StorageId = get_storage_id(StorageType),
                          add_storage_space_mapping(Workers, SpaceId, StorageId),
                          maybe_add_ceph_user(Workers, IsCeph, UserId, Username, Key),
                          add_space_row(RowId, SpaceDetails),
                          onepanel_gui_utils:message(success, <<"Created Space's ID: <b>", SpaceId/binary, "</b>">>),
                          State#?STATE{counter = Counter + 1, spaces_details = [{RowId, SpaceDetails} | SpacesDetails]}
                      catch
                          _:Reason ->
                              ?error_stacktrace("Cannot create Space ~p associated with token ~p: ~p", [Name, Token, Reason]),
                              onepanel_gui_utils:message(error, <<"Cannot create Space <b>", Name/binary, "</b> associated with token <b>", Token/binary, "</b>.<br>
                              Please try again later.">>),
                              State
  