|
@ -3,7 +3,6 @@ package loader |
|
|
import ( |
|
|
import ( |
|
|
"context" |
|
|
"context" |
|
|
"errors" |
|
|
"errors" |
|
|
"log" |
|
|
|
|
|
"strings" |
|
|
"strings" |
|
|
|
|
|
|
|
|
"git.aiterp.net/rpdata/api/model/character" |
|
|
"git.aiterp.net/rpdata/api/model/character" |
|
@ -70,8 +69,6 @@ func characterIDBatch(ctx context.Context, keys dataloader.Keys) []*dataloader.R |
|
|
results := make([]*dataloader.Result, 0, len(keys)) |
|
|
results := make([]*dataloader.Result, 0, len(keys)) |
|
|
ids := keys.Keys() |
|
|
ids := keys.Keys() |
|
|
|
|
|
|
|
|
log.Println("Loading", len(ids), "characters:", strings.Join(ids, ",")) |
|
|
|
|
|
|
|
|
|
|
|
characters, err := character.ListIDs(ids...) |
|
|
characters, err := character.ListIDs(ids...) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
for range ids { |
|
|
for range ids { |
|
|