Skip to content

Commit

Permalink
add decoding to core
Browse files Browse the repository at this point in the history
  • Loading branch information
Ifiht committed Feb 11, 2024
1 parent b93aa01 commit 47db29f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#@@@@@@ USERS MAY EDIT THEIR SETTINGS BELOW:
#[[[[[[ INITIALIZE CONFIG & ALL LIBRARY CLASSES HERE]]]]]]
sgram = ShikiGram.new
core_config = AppSettings.new
beanstalk_host = core_config.get("beanstalk_host")
beanstalk_port = core_config.get("beanstalk_port")
Expand Down Expand Up @@ -61,7 +62,7 @@ def eval_string(str)
loop do
job = bstalk.tubes.reserve
if job.exists?
str = job.body
str = sgram.open_msg(job.body)
log_to_pm2("Received job: #{str}")
semaphore.synchronize { # Only modify job_threads in semaphore
job_threads << Thread.new {
Expand Down

0 comments on commit 47db29f

Please sign in to comment.