Remove osGet

This commit is contained in:
2025-04-04 19:01:06 -04:00
parent cfcdc4bfaa
commit 5dc435a56a
2 changed files with 2 additions and 6 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
module github.com/rwinkhart/peercred-mini
go 1.24.1
go 1.24.2
require github.com/rwinkhart/sys v0.0.0-20250404053244-7215932ae926
+1 -5
View File
@@ -27,12 +27,8 @@ func (c *Creds) UserID() (uid string) {
return c.uid
}
func osGet(c net.Conn) (*Creds, error) {
return getUnix(c.(*net.UnixConn))
}
// Get returns the peer credentials for c.
func Get(c net.Conn) *Creds {
creds, _ := osGet(c)
creds, _ := getUnix(c.(*net.UnixConn))
return creds
}