in FishyTransport/Sources/FishyActorsGenerator/SourceGen.swift [43:52]
func generate(decl: DistributedActorDecl) throws -> GeneratedSource {
// TODO: Implement a proper bucketing approach to avoid re-generating too many sources
// Currently each new decl goes into the next bucket without taking anything else into account.
// It will create more buckets than requested if given enough decls
if currentBucket >= buckets {
print("Warning: too many distributed actors declared, please increase requested buckets (currently \(buckets) buckets; this is a temporary limitation of FishyTransport).")
}
defer { currentBucket += 1 }
return try GeneratedSource(text: generateSources(for: decl), bucket: currentBucket)
}