cloudflare / pingora

A library for building fast, reliable and evolvable network services.
Apache License 2.0
20.28k stars 1.1k forks source link

Enhance Server::run_forever Method for Stronger Ownership and Exit Semantics #176

Closed gengteng closed 2 months ago

gengteng commented 3 months ago

Refactored Server::run_forever to take self by value, signaling clear transfer of ownership and ensuring method concludes with explicit exit semantics. This small change improves code clarity and enforces better use patterns.

gumpt commented 2 months ago

This has been merged -- thank you for contributing!