mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-10 22:17:44 +00:00
read from bytes
This commit is contained in:
parent
5f1f7ff7d6
commit
239e5b928c
1 changed files with 3 additions and 3 deletions
|
@ -30,11 +30,11 @@ type application struct {
|
||||||
var workers int = runtime.NumCPU() * 8
|
var workers int = runtime.NumCPU() * 8
|
||||||
|
|
||||||
func accountWorker(id int, rc *reddit.Client, db *sql.DB, logger *log.Logger, quit chan bool) {
|
func accountWorker(id int, rc *reddit.Client, db *sql.DB, logger *log.Logger, quit chan bool) {
|
||||||
authKey, err := token.AuthKeyFromFile(os.Getenv("APPLE_AUTHKEY_PATH"))
|
authKey, err := token.AuthKeyFromBytes([]byte(os.Getenv("APPLE_KEY_PKEY")))
|
||||||
token := &token.Token{
|
token := &token.Token{
|
||||||
AuthKey: authKey,
|
AuthKey: authKey,
|
||||||
KeyID: "T88A7G9LZ8",
|
KeyID: os.Getenv("APPLE_KEY_ID"),
|
||||||
TeamID: "XG3L8T56DK",
|
TeamID: os.Getenv("APPLE_TEAM_ID"),
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue