|
1 | | -// Package dataloader is an implimentation of facebook's dataloader in go. |
| 1 | +// Package dataloader is an implementation of facebook's dataloader in go. |
2 | 2 | // See https://github.com/facebook/dataloader for more information |
3 | 3 | package dataloader |
4 | 4 |
|
@@ -242,7 +242,7 @@ func (l *Loader[K, V]) Load(originalContext context.Context, key K) Thunk[V] { |
242 | 242 | l.cache.Set(ctx, key, thunk) |
243 | 243 | l.cacheLock.Unlock() |
244 | 244 |
|
245 | | - // this is sent to batch fn. It contains the key and the channel to return the |
| 245 | + // this is sent to batch fn. It contains the key and the channel to return |
246 | 246 | // the result on |
247 | 247 | req := &batchRequest[K, V]{key, c} |
248 | 248 |
|
@@ -279,7 +279,7 @@ func (l *Loader[K, V]) Load(originalContext context.Context, key K) Thunk[V] { |
279 | 279 | return thunk |
280 | 280 | } |
281 | 281 |
|
282 | | -// LoadMany loads mulitiple keys, returning a thunk (type: ThunkMany) that will resolve the keys passed in. |
| 282 | +// LoadMany loads multiple keys, returning a thunk (type: ThunkMany) that will resolve the keys passed in. |
283 | 283 | func (l *Loader[K, V]) LoadMany(originalContext context.Context, keys []K) ThunkMany[V] { |
284 | 284 | ctx, finish := l.tracer.TraceLoadMany(originalContext, keys) |
285 | 285 |
|
@@ -347,7 +347,7 @@ func (l *Loader[K, V]) LoadMany(originalContext context.Context, keys []K) Thunk |
347 | 347 | return thunkMany |
348 | 348 | } |
349 | 349 |
|
350 | | -// Clear clears the value at `key` from the cache, it it exsits. Returs self for method chaining |
| 350 | +// Clear clears the value at `key` from the cache, it it exists. Returns self for method chaining |
351 | 351 | func (l *Loader[K, V]) Clear(ctx context.Context, key K) Interface[K, V] { |
352 | 352 | l.cacheLock.Lock() |
353 | 353 | l.cache.Delete(ctx, key) |
|
0 commit comments