You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
486 B
22 lines
486 B
package pay |
|
|
|
import ( |
|
"server/call" |
|
"server/common" |
|
"server/modules/pay/values" |
|
"server/pb" |
|
) |
|
|
|
func loadConfig() error { |
|
c := map[int][]func(*pb.ReloadGameConfig) error{} |
|
c[common.ReloadConfigPayWeight] = []func(*pb.ReloadGameConfig) error{func(rgc *pb.ReloadGameConfig) error { return LoadPayWeight() }} |
|
call.LoadConfigs(c) |
|
return nil |
|
} |
|
|
|
func LoadPayWeight() error { |
|
values.PayWeightLock.Lock() |
|
defer values.PayWeightLock.Unlock() |
|
call.LoadConfigPayChannels() |
|
return nil |
|
}
|
|
|