alkurbatov / alkurbatov/suvorov-bot

Strategy Settings for plugins

Aperta
#54 9 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C++
Stelle
18
Fork
6
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Strategy should pass settings into plugins during plugins creation.

alkurbatov:
"a. We definitely need to know which strategy to use in advance. As a result, the strategy should always be created before any other plugins.
b. The strategy could provide a kind of requirements (another struct) with some settings. Those settings could include different hints for different subsystems (in or case for the miner). The things like worker type (i.e. race specific) could be included into the settings, too.
c. Dispatcher takes a const reference to the settings from the strategy.
d. Dispatcher passes the settings by reference into each plugin. A plugin in its turn can put the hints it needs into member variables (also constants).

Such approach allows to pass hints not only to the miner, but to any other plugin and keeps cache role on the hub, not game brain :)"

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.