Skip to content

Commit

Permalink
Fix neutral-cp config (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
ohkinozomu authored Nov 16, 2023
1 parent 29866bd commit 5384c38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions cmd/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ var agentCmd = &cobra.Command{
c := ncp.Config{
Registry: registry,
ApplicationName: "fuyuu-router-agent",
ServerAddress: config.Profiling.ServerAddress,
}
ncp := ncp.NeutralCP{Config: c}

Expand Down
6 changes: 1 addition & 5 deletions internal/hub/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,11 +411,7 @@ func (s *server) startHTTP1(c HubConfig) {
if s.merger.IsComplete(chunk) {
combined := s.merger.GetCombinedData(chunk)
mergeChPayload.httpResponseData.Body.Body = combined
updateDBChPayload := updateDBChPayload{
responsePacket: mergeChPayload.responsePacket,
httpResponseData: mergeChPayload.httpResponseData,
}
s.updateDBCh <- updateDBChPayload
s.updateDBCh <- updateDBChPayload(mergeChPayload)
}
case updateDBChPayload := <-s.updateDBCh:
s.logger.Debug("Writing response to database...")
Expand Down

0 comments on commit 5384c38

Please sign in to comment.