Skip to content

Commit

Permalink
Fix notifying about new interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
janekolszak committed Jun 5, 2023
1 parent 1461e5f commit 052c007
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ BEGIN
END IF;

-- Neglect big interactions
SELECT pg_column_size(NEW.transaction) > 7950 INTO is_too_big;
SELECT pg_column_size(NEW.interaction) > 7950 INTO is_too_big;

-- Skip if there's no forwarder listening
SELECT EXISTS(SELECT pid FROM pg_stat_activity WHERE query='listen "interactions"') INTO is_forwarder_listening;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/streamer/streamer.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (self *Streamer) Resume() (err error) {
return
}

self.Log.Info("Resume streamer")
self.Log.WithField("channel", self.channelName).Info("Resume streamer")

err = self.connection.Listen(self.channelName)
if err != nil {
Expand Down

0 comments on commit 052c007

Please sign in to comment.