<SeanTAllen>
That's a nice chunk of code. What is the problem?
<SirRolin>
right now, I have tried to make the Actor called Note change some of it's variables as a callback from a function ait's behavior is calling
<SirRolin>
and using behaviors as the callback method does compile, but seems to do nothing
<SeanTAllen>
not sure how to help with "seems to do nothing"
codec1 has quit [Ping timeout: 268 seconds]
<SeanTAllen>
what is the "Note" actor supposed to do?
<SirRolin>
it doesn't update the values, and therefore doesn't reconnect, if I call Note it reconnects for both the new Actor and the old making it have 2 Notes running
<SeanTAllen>
Is that a Pg equivalent of TCPConnection?
<SirRolin>
the note actor is listening to a POSTGRES server
<SeanTAllen>
what is "call Note"?
oraoto has quit [Ping timeout: 248 seconds]
<SeanTAllen>
do you mean call the "refress" behavior?
<SirRolin>
calling refress seems to do nothing, but initialising a new one does reinstianiate both
<SeanTAllen>
what are you trying to accomplish?
<SeanTAllen>
you want to reconnect when disconnected?
<SirRolin>
yes
<SeanTAllen>
you seem to have a lot of logic in the timer notify. i'm not sure why.
<SeanTAllen>
the only reason to have a reconnect timer is if you get disconnected and then can't immediately reconnect
<SeanTAllen>
in which case you want a timer to call a behavior to attempt a new reconnect
<SeanTAllen>
the logic would only be calling a behavior on the actor to do the reconnect
<SeanTAllen>
nothing else
<SeanTAllen>
i'm not sure why you are passing a connection etc
<SeanTAllen>
"Note" should manage a single connection
<SeanTAllen>
and never get sent a connection
<SeanTAllen>
The purpose of the actor is the manage the connection and associated events
<SeanTAllen>
you are missing a lot of logic for doing reconnect.
<SirRolin>
so you are saying I should make the create call another function within Note, which would connect, and use the timer to call the behavior that would call the same connect function?
<SeanTAllen>
there's a lot of other logic in that TCPSink actor but it does have working reconnect logic
<SeanTAllen>
no im not saying that
<SeanTAllen>
connect for first time and reconnect are different logic
<SeanTAllen>
but they are similar
<SeanTAllen>
check out how we do it in TCPSink
samuell has quit [Quit: Leaving]
<SirRolin>
ok I am checking it out
samuell has joined #ponylang
vaninwagen has quit [Ping timeout: 248 seconds]
gokr has quit [Ping timeout: 248 seconds]
oraoro has joined #ponylang
oraoro has quit [Ping timeout: 240 seconds]
oraoro has joined #ponylang
oraoro has quit [Ping timeout: 246 seconds]
oraoro has joined #ponylang
oraoro has quit [Ping timeout: 264 seconds]
oraoro has joined #ponylang
SirRolin has quit [Ping timeout: 260 seconds]
oraoro has quit [Ping timeout: 240 seconds]
codec1 has joined #ponylang
Nat_ has joined #ponylang
oraoro has joined #ponylang
oraoto has joined #ponylang
oraoro has quit [Ping timeout: 248 seconds]
endformationage has joined #ponylang
Nat_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oraoto has quit [Ping timeout: 260 seconds]
jemc has joined #ponylang
oraoro has joined #ponylang
chamar has joined #ponylang
oraoto has joined #ponylang
oraoto has quit [Remote host closed the connection]
oraoro_ has joined #ponylang
oraoro has quit [Ping timeout: 268 seconds]
oraoro_ has quit [Ping timeout: 240 seconds]
codec1 has quit [Ping timeout: 248 seconds]
codec1 has joined #ponylang
dipin has joined #ponylang
codec1 has quit [Quit: Leaving.]
gokr has joined #ponylang
user10032 has joined #ponylang
ShalokShalom_ has quit [Ping timeout: 240 seconds]
gokr has quit [Ping timeout: 268 seconds]
nisanharamati has joined #ponylang
codec1 has joined #ponylang
Amun_Ra has quit [Quit: WeeChat 1.6]
Amun_Ra has joined #ponylang
gokr has joined #ponylang
vaninwagen has joined #ponylang
gokr has quit [Ping timeout: 248 seconds]
user10032 has quit [Quit: Leaving]
mattmoss has joined #ponylang
mattmoss has quit [Client Quit]
user10032 has joined #ponylang
user10032 has quit [Quit: Leaving]
samuell has quit [Quit: Leaving]
codec1 has quit [Read error: Connection reset by peer]