| 848 | |
| 849 | |
| 850 | Future<Nothing> learn(const Shared<Network>& network, const Action& action) |
| 851 | { |
| 852 | LearnedMessage message; |
| 853 | message.mutable_action()->CopyFrom(action); |
| 854 | |
| 855 | if (!action.has_learned() || !action.learned()) { |
| 856 | message.mutable_action()->set_learned(true); |
| 857 | } |
| 858 | |
| 859 | return network->broadcast(message); |
| 860 | } |
| 861 | |
| 862 | |
| 863 | Future<Action> fill( |
no test coverage detected