kubo/core/coreapi
Marcin Rataj 8de1ace788 refactor: fix error handling and race conditions in dag import
address code review feedback for PR #11069:

- fix: propagate decode errors in client/rpc dag import (was silently dropping errors)
- fix: acquire pinlock before spawning goroutine to prevent race with GC
- fix: update fast-provide test to always expect failure in isolated environment
- test: add proper json compatibility test for provide stats (replaces compile-time check)
- docs: add educational comments explaining batch config defaults
- style: standardize error messages to use consistent "failed to X: %w" pattern

the pinlock fix is critical - moving acquisition before goroutine spawn prevents
blocks from being garbage collected before the lock is held. the error handling
fix ensures RPC clients receive decode errors instead of empty results.
2025-11-23 17:04:13 +01:00
..
test refactor(config): migration 17-to-18 to unify Provider/Reprovider into Provide.DHT (#10951) 2025-09-18 22:17:43 +02:00
block.go feat: support optional pin names (#10261) 2024-01-04 14:25:06 +01:00
coreapi.go refactor(config): migration 17-to-18 to unify Provider/Reprovider into Provide.DHT (#10951) 2025-09-18 22:17:43 +02:00
dag.go refactor: fix error handling and race conditions in dag import 2025-11-23 17:04:13 +01:00
key.go chore: use errors.New to replace fmt.Errorf with no parameters (#10617) 2024-12-10 13:50:35 -08:00
name.go feat(config): AutoConf with "auto" placeholders (#10883) 2025-08-20 05:59:11 +02:00
object.go core/commands!: remove deprecated object APIs (#10375) 2024-03-22 09:32:30 +01:00
path.go chore: clean migration 2023-11-29 12:29:59 +01:00
pin.go fix: Provide according to Reprovider.Strategy (#10886) 2025-08-08 10:56:44 +02:00
pubsub.go chore: clean migration 2023-11-29 12:29:59 +01:00
routing.go feat(client/rpc): add provide stat and dag import support 2025-11-20 05:55:59 +01:00
swarm.go chore: clean migration 2023-11-29 12:29:59 +01:00
unixfs.go refactor(config): migration 17-to-18 to unify Provider/Reprovider into Provide.DHT (#10951) 2025-09-18 22:17:43 +02:00