Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobdylanc committed Dec 6, 2024
1 parent 6964dda commit 6b8fd1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llmcord.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ async def on_message(new_msg):
except:
logging.exception("Error while generating response")

for msg in response_msgs:
msg_nodes[msg.id].text = "".join(response_contents)
msg_nodes[msg.id].lock.release()
for response_msg in response_msgs:
msg_nodes[response_msg.id].text = "".join(response_contents)
msg_nodes[response_msg.id].lock.release()

# Delete oldest MsgNodes (lowest message IDs) from the cache
if (num_nodes := len(msg_nodes)) > MAX_MESSAGE_NODES:
Expand Down

0 comments on commit 6b8fd1e

Please sign in to comment.