v: remove the automatic passing of structs with more than 8 fields by reference (related #17159) (#22547)

This commit is contained in:
yuyi 2024-10-17 16:04:23 +08:00 committed by GitHub
parent 5f413f48f8
commit e97036a25b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
45 changed files with 146 additions and 175 deletions

View file

@ -239,7 +239,7 @@ pub fn (mut s Server) set_state(state State) {
}
// get_state return current state in a thread safe way
pub fn (s Server) get_state() State {
pub fn (s &Server) get_state() State {
return rlock s.server_state {
s.server_state.state
}