From 09f4e8b15f5d4f3a1aea7bc11529cdea3ed50af1 Mon Sep 17 00:00:00 2001 From: ssd04 Date: Fri, 22 Dec 2023 11:29:41 +0200 Subject: [PATCH] fix config field - events notifier --- docs/sdk-and-tools/notifier.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/sdk-and-tools/notifier.md b/docs/sdk-and-tools/notifier.md index 879c0268f..3bf474700 100644 --- a/docs/sdk-and-tools/notifier.md +++ b/docs/sdk-and-tools/notifier.md @@ -175,6 +175,10 @@ file that can be used to configure the service. There are some general configuration options, which should be fine with their default values: ```toml [General] + # CheckDuplicates signals if the events received from observers have been already pushed to clients + # Requires a redis instance/cluster and should be used when multiple observers push from the same shard + CheckDuplicates = true + # ExternalMarshaller is used for handling incoming/outcoming api requests [General.ExternalMarshaller] Type = "json" @@ -188,15 +192,12 @@ There are some general configuration options, which should be fine with their de Type = "bech32" Prefix = "erd" Length = 32 - - # CheckDuplicates signals if the events received from observers have been already pushed to clients - # Requires a redis instance/cluster and should be used when multiple observers push from the same shard - CheckDuplicates = true ``` :::info Starting with release `v1.2.0`, `CheckDuplicates` field has been moved from `ConnectorApi` section to -the newly added `General` section. +the newly added `General` section. Please make sure to put `CheckDuplicates` field before other inner +struct fields in `General` section. ::: There are 2 ways to connect observer node with events notifier service: @@ -231,6 +232,9 @@ There is a separate config section `WebSocketConnector` that has to be aligned w # Signals if in case of data payload processing error, we should send the ack signal or not BlockingAckOnError = false + # Set to true to drop messages if there is no active WebSocket connection to send to. + DropMessagesIfNoConnection = false + # After a message will be sent it will wait for an ack message if this flag is enabled WithAcknowledge = true