Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5118aeb

Browse files
committed
remove ReportDeployment from Reporter
1 parent0a95dcd commit5118aeb

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

‎coderd/telemetry/telemetry.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ type Reporter interface {
9999
// database. For example, if a new user is added, a snapshot can
100100
// contain just that user entry.
101101
Report(snapshot*Snapshot)
102-
// ReportDeployment sends deployment information to the telemetry server.
103-
ReportDeployment()
104102
Enabled()bool
105103
Close()
106104
}
@@ -224,12 +222,6 @@ func (r *remoteReporter) reportWithDeployment() {
224222
r.reportSync(snapshot)
225223
}
226224

227-
func (r*remoteReporter)ReportDeployment() {
228-
iferr:=r.deployment();err!=nil {
229-
r.options.Logger.Debug(r.ctx,"failed to report deployment",slog.Error(err))
230-
}
231-
}
232-
233225
// deployment collects host information and reports it to the telemetry server.
234226
func (r*remoteReporter)deployment()error {
235227
sysInfoHost,err:=sysinfo.Host()
@@ -1596,4 +1588,3 @@ type noopReporter struct{}
15961588
func (*noopReporter)Report(_*Snapshot) {}
15971589
func (*noopReporter)Enabled()bool {returnfalse }
15981590
func (*noopReporter)Close() {}
1599-
func (*noopReporter)ReportDeployment() {}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp