Skip to content

Commit 58235fb

Browse files
committed
(misc) fmt
1 parent c30f999 commit 58235fb

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

src/geyser_plugin_postgres.rs

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -113,49 +113,49 @@ impl GeyserPlugin for GeyserPluginPostgres {
113113
///
114114
/// # Format of the config file:
115115
/// * The `accounts_selector` section allows the user to controls accounts selections.
116-
/// "accounts_selector" : {
117-
/// "accounts" : \["pubkey-1", "pubkey-2", ..., "pubkey-n"\],
118-
/// }
119-
/// or:
120-
/// "accounts_selector" = {
121-
/// "owners" : \["pubkey-1", "pubkey-2", ..., "pubkey-m"\]
122-
/// }
123-
/// Accounts either satisyfing the accounts condition or owners condition will be selected.
124-
/// When only owners is specified,
125-
/// all accounts belonging to the owners will be streamed.
126-
/// The accounts field supports wildcard to select all accounts:
127-
/// "accounts_selector" : {
128-
/// "accounts" : \["*"\],
129-
/// }
116+
/// "accounts_selector" : {
117+
/// "accounts" : \["pubkey-1", "pubkey-2", ..., "pubkey-n"\],
118+
/// }
119+
/// or:
120+
/// "accounts_selector" = {
121+
/// "owners" : \["pubkey-1", "pubkey-2", ..., "pubkey-m"\]
122+
/// }
123+
/// Accounts either satisyfing the accounts condition or owners condition will be selected.
124+
/// When only owners is specified,
125+
/// all accounts belonging to the owners will be streamed.
126+
/// The accounts field supports wildcard to select all accounts:
127+
/// "accounts_selector" : {
128+
/// "accounts" : \["*"\],
129+
/// }
130130
/// * "host", optional, specifies the PostgreSQL server.
131131
/// * "user", optional, specifies the PostgreSQL user.
132132
/// * "port", optional, specifies the PostgreSQL server's port.
133133
/// * "connection_str", optional, the custom PostgreSQL connection string.
134-
/// Please refer to https://docs.rs/postgres/0.19.2/postgres/config/struct.Config.html for the connection configuration.
135-
/// When `connection_str` is set, the values in "host", "user" and "port" are ignored. If `connection_str` is not given,
136-
/// `host` and `user` must be given.
137-
/// "store_account_historical_data", optional, set it to 'true', to store historical account data to account_audit
138-
/// table.
134+
/// Please refer to https://docs.rs/postgres/0.19.2/postgres/config/struct.Config.html for the connection configuration.
135+
/// When `connection_str` is set, the values in "host", "user" and "port" are ignored. If `connection_str` is not given,
136+
/// `host` and `user` must be given.
137+
/// "store_account_historical_data", optional, set it to 'true', to store historical account data to account_audit
138+
/// table.
139139
/// * "threads" optional, specifies the number of worker threads for the plugin. A thread
140-
/// maintains a PostgreSQL connection to the server. The default is '10'.
140+
/// maintains a PostgreSQL connection to the server. The default is '10'.
141141
/// * "batch_size" optional, specifies the batch size of bulk insert when the AccountsDb is created
142-
/// from restoring a snapshot. The default is '10'.
142+
/// from restoring a snapshot. The default is '10'.
143143
/// * "panic_on_db_errors", optional, contols if to panic when there are errors replicating data to the
144-
/// PostgreSQL database. The default is 'false'.
144+
/// PostgreSQL database. The default is 'false'.
145145
/// * "transaction_selector", optional, controls if and what transaction to store. If this field is missing
146-
/// None of the transction is stored.
147-
/// "transaction_selector" : {
148-
/// "mentions" : \["pubkey-1", "pubkey-2", ..., "pubkey-n"\],
149-
/// }
150-
/// The `mentions` field support wildcard to select all transaction or all 'vote' transactions:
151-
/// For example, to select all transactions:
152-
/// "transaction_selector" : {
153-
/// "mentions" : \["*"\],
154-
/// }
155-
/// To select all vote transactions:
156-
/// "transaction_selector" : {
157-
/// "mentions" : \["all_votes"\],
158-
/// }
146+
/// None of the transction is stored.
147+
/// "transaction_selector" : {
148+
/// "mentions" : \["pubkey-1", "pubkey-2", ..., "pubkey-n"\],
149+
/// }
150+
/// The `mentions` field support wildcard to select all transaction or all 'vote' transactions:
151+
/// For example, to select all transactions:
152+
/// "transaction_selector" : {
153+
/// "mentions" : \["*"\],
154+
/// }
155+
/// To select all vote transactions:
156+
/// "transaction_selector" : {
157+
/// "mentions" : \["all_votes"\],
158+
/// }
159159
/// # Examples
160160
///
161161
/// {

0 commit comments

Comments
 (0)