mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 13:42:25 -05:00 
			
		
		
		
	[chore]: Bump github.com/prometheus/client_golang from 1.17.0 to 1.18.0 (#2507)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.17.0 to 1.18.0. - [Release notes](https://github.com/prometheus/client_golang/releases) - [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md) - [Commits](https://github.com/prometheus/client_golang/compare/v1.17.0...v1.18.0) --- updated-dependencies: - dependency-name: github.com/prometheus/client_golang dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
		
					parent
					
						
							
								10660e566d
							
						
					
				
			
			
				commit
				
					
						d9127f5630
					
				
			
		
					 23 changed files with 235 additions and 58 deletions
				
			
		
							
								
								
									
										20
									
								
								vendor/github.com/prometheus/procfs/proc_maps.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								vendor/github.com/prometheus/procfs/proc_maps.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -63,17 +63,17 @@ type ProcMap struct { | |||
| // parseDevice parses the device token of a line and converts it to a dev_t | ||||
| // (mkdev) like structure. | ||||
| func parseDevice(s string) (uint64, error) { | ||||
| 	toks := strings.Split(s, ":") | ||||
| 	if len(toks) < 2 { | ||||
| 		return 0, fmt.Errorf("%w: unexpected number of fields, expected: 2, got: %q", ErrFileParse, len(toks)) | ||||
| 	i := strings.Index(s, ":") | ||||
| 	if i == -1 { | ||||
| 		return 0, fmt.Errorf("%w: expected separator `:` in %s", ErrFileParse, s) | ||||
| 	} | ||||
| 
 | ||||
| 	major, err := strconv.ParseUint(toks[0], 16, 0) | ||||
| 	major, err := strconv.ParseUint(s[0:i], 16, 0) | ||||
| 	if err != nil { | ||||
| 		return 0, err | ||||
| 	} | ||||
| 
 | ||||
| 	minor, err := strconv.ParseUint(toks[1], 16, 0) | ||||
| 	minor, err := strconv.ParseUint(s[i+1:], 16, 0) | ||||
| 	if err != nil { | ||||
| 		return 0, err | ||||
| 	} | ||||
|  | @ -93,17 +93,17 @@ func parseAddress(s string) (uintptr, error) { | |||
| 
 | ||||
| // parseAddresses parses the start-end address. | ||||
| func parseAddresses(s string) (uintptr, uintptr, error) { | ||||
| 	toks := strings.Split(s, "-") | ||||
| 	if len(toks) < 2 { | ||||
| 		return 0, 0, fmt.Errorf("%w: invalid address", ErrFileParse) | ||||
| 	idx := strings.Index(s, "-") | ||||
| 	if idx == -1 { | ||||
| 		return 0, 0, fmt.Errorf("%w: expected separator `-` in %s", ErrFileParse, s) | ||||
| 	} | ||||
| 
 | ||||
| 	saddr, err := parseAddress(toks[0]) | ||||
| 	saddr, err := parseAddress(s[0:idx]) | ||||
| 	if err != nil { | ||||
| 		return 0, 0, err | ||||
| 	} | ||||
| 
 | ||||
| 	eaddr, err := parseAddress(toks[1]) | ||||
| 	eaddr, err := parseAddress(s[idx+1:]) | ||||
| 	if err != nil { | ||||
| 		return 0, 0, err | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue