Method: OpenC3::ReactionBase#update

Defined in:
lib/openc3/microservices/reaction_microservice.rb

#update(reaction:) ⇒ Object

Updates a reaction to the in memory database. This current does not update the lookup Hash for the triggers.



149
150
151
152
153
154
# File 'lib/openc3/microservices/reaction_microservice.rb', line 149

def update(reaction:)
  reaction_name = reaction['name']
  @reactions_mutex.synchronize do
    @reactions[reaction_name] = reaction
  end
end