mirror of
https://github.com/oarkflow/mq.git
synced 2025-10-10 07:20:04 +08:00
feat: update
This commit is contained in:
12
options.go
12
options.go
@@ -85,6 +85,18 @@ func (o *Options) SetSyncMode(sync bool) {
|
||||
o.syncMode = sync
|
||||
}
|
||||
|
||||
func (o *Options) NumOfWorkers() int {
|
||||
return o.numOfWorkers
|
||||
}
|
||||
|
||||
func (o *Options) QueueSize() int {
|
||||
return o.queueSize
|
||||
}
|
||||
|
||||
func (o *Options) MaxMemoryLoad() int64 {
|
||||
return o.maxMemoryLoad
|
||||
}
|
||||
|
||||
func defaultOptions() *Options {
|
||||
return &Options{
|
||||
brokerAddr: ":8080",
|
||||
|
Reference in New Issue
Block a user