Skip to content

Commit

Permalink
Merge pull request #178 from signalfx/disco-thrift
Browse files Browse the repository at this point in the history
Remove disco/thrift code
  • Loading branch information
benkeith-splunk authored Mar 6, 2020
2 parents 301f2de + 15226f8 commit 19d0833
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 896 deletions.
400 changes: 0 additions & 400 deletions disco/calc_test.go

This file was deleted.

5 changes: 5 additions & 0 deletions disco/disco.go
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,11 @@ func (s *Service) byteHashes() string {
return r
}

// StateLog is returned for nesting in wrapping clients.
func (s *Service) StateLog() log.Logger {
return s.stateLog
}

func childrenServices(logger log.Logger, serviceName string, children []string, zkConn ZkConn) ([]ServiceInstance, error) {
logger.Log("getting services")
ret := make([]ServiceInstance, len(children))
Expand Down
1 change: 1 addition & 0 deletions disco/disco_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ func testServices(t *testing.T, z1 zktest.ZkConnSupported, ch <-chan zk.Event, z
s, err := d1.Services("not_here")
require.NoError(t, err)
require.Equal(t, 0, len(s.ServiceInstances()))
require.NotNil(t, s.StateLog())

onWatchChan := make(chan struct{})
s.Watch(func() {
Expand Down
3 changes: 0 additions & 3 deletions disco/gobuild.toml

This file was deleted.

161 changes: 0 additions & 161 deletions disco/thrift.go

This file was deleted.

Loading

0 comments on commit 19d0833

Please sign in to comment.