code: func GetSettings(c context.Context) *config.Settings {
  	settings := config.Settings{
  		Buildbot: &config.Settings_Buildbot{},
  	}
  
  	msg, err := GetCurrentServiceConfig(c)
  	if err != nil {
  		// The service config does not exist, just return an empty config
  		// and complain loudly in the logs.
  		logging.WithError(err).Errorf(c,
  			"Encountered error while loading service config, using empty config.")
  		return &settings
  	}
  
  	err = proto.Unmarshal(msg.Data, &settings)
  	if err != nil {
  		// The service config is broken, just return an empty config
  		// and complain loudly in the logs.
  		logging.WithError(err).Errorf(c,
  			"Encountered error while unmarshalling service config, using empty config.")
  		// Zero out the message just incase something got written in.
  		settings = config.Settings{Buildbot: &config.Settings_Buildbot{}}
  	}
  
  	return &settings
  }
docs: // GetSettings returns the service (aka global) config for the current
  // instance of Milo from the datastore.  Returns an empty config and warn heavily
  // if none is found.
  // TODO(hinoka): Use process cache to cache configs.