Skip to content

Commit 0b8c8a0

Browse files
committed
Rename SymbolManagerConfig methods from 'symbols_*' to 'symbol_*'.
1 parent 5b6b322 commit 0b8c8a0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

samply/src/server.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ fn create_symbol_manager_config_and_quota_manager(
123123
.or_else(|| Some(symbols_dir?.join("breakpad")));
124124
if let Some(cache_dir) = breakpad_symbol_cache_dir {
125125
for base_url in symbol_props.breakpad_symbol_server {
126-
config = config.breakpad_symbols_server(base_url, &cache_dir)
126+
config = config.breakpad_symbol_server(base_url, &cache_dir)
127127
}
128128
for dir in symbol_props.breakpad_symbol_dir {
129-
config = config.breakpad_symbols_dir(dir);
129+
config = config.breakpad_symbol_dir(dir);
130130
}
131131
if let Some(symbols_dir) = symbols_dir {
132132
let breakpad_symindex_cache_dir = symbols_dir.join("breakpad-symindex");
@@ -139,7 +139,7 @@ fn create_symbol_manager_config_and_quota_manager(
139139
.or_else(|| Some(symbols_dir?.join("windows")));
140140
if let Some(cache_dir) = windows_symbol_cache_dir {
141141
for base_url in symbol_props.windows_symbol_server {
142-
config = config.windows_symbols_server(base_url, &cache_dir)
142+
config = config.windows_symbol_server(base_url, &cache_dir)
143143
}
144144
}
145145

@@ -148,7 +148,7 @@ fn create_symbol_manager_config_and_quota_manager(
148148
}
149149

150150
for dir in symbol_props.symbol_dir {
151-
config = config.extra_symbols_directory(dir);
151+
config = config.extra_symbol_directory(dir);
152152
}
153153

154154
(config, quota_manager)

wholesym/src/config.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ impl SymbolManagerConfig {
8686
///
8787
/// The first-added directory will be searched first. Directories added here
8888
/// are only used for reading.
89-
pub fn breakpad_symbols_dir(mut self, dir: impl Into<PathBuf>) -> Self {
89+
pub fn breakpad_symbol_dir(mut self, dir: impl Into<PathBuf>) -> Self {
9090
self.breakpad_directories_readonly.push(dir.into());
9191
self
9292
}
9393

9494
/// Add a server to search for breakpad symbol files, along with a local cache directory.
9595
///
9696
/// This method can be called multiple times; the servers and caches will be tried in the order of those calls.
97-
pub fn breakpad_symbols_server(
97+
pub fn breakpad_symbol_server(
9898
mut self,
9999
base_url: impl Into<String>,
100100
cache_dir: impl Into<PathBuf>,
@@ -118,7 +118,7 @@ impl SymbolManagerConfig {
118118
/// Add a server to search for Windows symbol files (pdb / exe / dll), along with a local cache directory.
119119
///
120120
/// This method can be called multiple times; the servers and caches will be tried in the order of those calls.
121-
pub fn windows_symbols_server(
121+
pub fn windows_symbol_server(
122122
mut self,
123123
base_url: impl Into<String>,
124124
cache_dir: impl Into<PathBuf>,
@@ -172,7 +172,7 @@ impl SymbolManagerConfig {
172172

173173
/// Add an additional directory that may contain symbol files.
174174
/// We will check "\<dir\>/\<binaryname\>" and "\<dir\>/\<debug_name\>".
175-
pub fn extra_symbols_directory(mut self, dir: impl Into<PathBuf>) -> Self {
175+
pub fn extra_symbol_directory(mut self, dir: impl Into<PathBuf>) -> Self {
176176
self.extra_symbol_directories.push(dir.into());
177177
self
178178
}

0 commit comments

Comments
 (0)