Revert timeout back to 1

Oh okay, I was misinterpreting the error: it was that our NEOPETS_URL_ORIGIN secret value isn't the real Neopets.com IP address anymore, so amfphp requests were just plain *always* failing in production. Oops!

I've remove that environment variable from our production config, and now modeling is working in the bulk thing!

Also I'm noticing that we're using puma these days, which does good threading stuff. I think there might be merit to switching over to Falcon because of just how async-y our stuff is, but having 5 threads going is honestly probably good enough that I don't need to worry too much about mutual blocking, and could probably just write stuff to get Neopia out of the picture like *right now*. Neat!
This commit is contained in:
Emi Matchu 2023-10-12 22:18:01 -07:00
parent b885ff6ac0
commit e00ee08ae7

View file

@ -14,7 +14,7 @@ class PetsController < ApplicationController
@pet = Pet.load(
params[:name],
:item_scope => Item.includes(:translations),
:timeout => 2
:timeout => 1
)
points = contribute(current_user, @pet)