标签: android sqlite android-sqlite
此代码仍存储重复的def handle_call({:accept_game, player_2_id}, _from, %{started: false, player_2: p2_id} = state) when player_2_id == p2_id do #create game hands, broadcasts, etc {:reply, :ok, Map.put(state, :started, true)} end 。我怎么解决呢?
def handle_call({:accept_game, player_2_id}, _from, %{started: false, player_2: p2_id} = state) when player_2_id == p2_id do #create game hands, broadcasts, etc {:reply, :ok, Map.put(state, :started, true)} end
KEY_NAME