[haskell] back off when hitting the rate limit
This commit is contained in:
parent
d43972e5dc
commit
f23fe74dbe
4 changed files with 60 additions and 20 deletions
|
@ -3,8 +3,7 @@
|
|||
{-# LANGUAGE OverloadedStrings #-}
|
||||
|
||||
module SpaceTraders.Model.Agent
|
||||
( Agent(accountId, credits, headquarters)
|
||||
, agentSymbol
|
||||
( Agent(..)
|
||||
) where
|
||||
|
||||
import Data.Aeson
|
||||
|
@ -13,10 +12,8 @@ import qualified Data.Text as T
|
|||
|
||||
data Agent = Agent { accountId :: T.Text
|
||||
, credits :: Integer
|
||||
--, faction :: Faction
|
||||
, headquarters :: T.Text
|
||||
, startingFaction :: T.Text
|
||||
, symbol :: T.Text
|
||||
} deriving (FromJSON, Generic, Show, ToJSON)
|
||||
|
||||
agentSymbol :: Agent -> T.Text
|
||||
agentSymbol = symbol
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue