@@ -113,49 +113,49 @@ impl GeyserPlugin for GeyserPluginPostgres {
113
113
///
114
114
/// # Format of the config file:
115
115
/// * 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
+ /// }
130
130
/// * "host", optional, specifies the PostgreSQL server.
131
131
/// * "user", optional, specifies the PostgreSQL user.
132
132
/// * "port", optional, specifies the PostgreSQL server's port.
133
133
/// * "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.
139
139
/// * "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'.
141
141
/// * "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'.
143
143
/// * "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'.
145
145
/// * "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
+ /// }
159
159
/// # Examples
160
160
///
161
161
/// {
0 commit comments